public interface ServiceTarget
addService(ServiceName)
method.
Service installation will only take place after ServiceBuilder.install()
is issued.
ServiceBuilders that are not installed will be ignored.
Implementations of this interface are thread safe.
Modifier and Type | Method and Description |
---|---|
ServiceTarget |
addDependency(Collection<ServiceName> dependencies)
Deprecated.
This method will be removed in a future release.
|
ServiceTarget |
addDependency(ServiceName... dependencies)
Deprecated.
This method will be removed in a future release.
|
ServiceTarget |
addDependency(ServiceName dependency)
Deprecated.
This method will be removed in a future release.
|
ServiceTarget |
addListener(Collection<ServiceListener<Object>> listeners)
Deprecated.
Use
addListener(LifecycleListener) instead.
This method will be removed in a future release. |
ServiceTarget |
addListener(LifecycleListener listener)
Add a service lifecycle listener that will be added to this service.
|
ServiceTarget |
addListener(ServiceListener<Object>... listeners)
Deprecated.
Use
addListener(LifecycleListener) instead.
This method will be removed in a future release. |
ServiceTarget |
addListener(ServiceListener<Object> listener)
Deprecated.
Use
addListener(LifecycleListener) instead.
This method will be removed in a future release. |
ServiceTarget |
addMonitor(StabilityMonitor monitor)
Deprecated.
Stability monitors are unreliable - do not use them.
This method will be removed in a future release.
|
ServiceTarget |
addMonitors(StabilityMonitor... monitors)
Deprecated.
Stability monitors are unreliable - do not use them.
This method will be removed in a future release.
|
ServiceBuilder<?> |
addService(ServiceName name)
Get a builder which can be used to add a service to this target.
|
<T> ServiceBuilder<T> |
addService(ServiceName name,
Service<T> service)
Deprecated.
Use
addService(ServiceName) instead.
This method will be removed in a future release. |
<T> ServiceBuilder<T> |
addServiceValue(ServiceName name,
Value<? extends Service<T>> value)
Deprecated.
Use
addService(ServiceName) instead.
This method will be removed in a future release. |
BatchServiceTarget |
batchTarget()
Deprecated.
This method will be removed in a future release.
|
Set<ServiceName> |
getDependencies()
Deprecated.
This method will be removed in a future release.
|
Set<ServiceListener<Object>> |
getListeners()
Deprecated.
This method will be removed in a future release.
|
Set<StabilityMonitor> |
getMonitors()
Deprecated.
Stability monitors are unreliable - do not use them.
This method will be removed in a future release.
|
ServiceTarget |
removeDependency(ServiceName dependency)
Deprecated.
This method will be removed in a future release.
|
ServiceTarget |
removeListener(LifecycleListener listener)
Remove a lifecycle listener from this target, if it exists.
|
ServiceTarget |
removeListener(ServiceListener<Object> listener)
Deprecated.
Use
removeListener(LifecycleListener) instead.
This method will be removed in a future release. |
ServiceTarget |
removeMonitor(StabilityMonitor monitor)
Deprecated.
Stability monitors are unreliable - do not use them.
This method will be removed in a future release.
|
ServiceTarget |
subTarget()
Create a sub-target using this as the parent target.
|
ServiceTarget addListener(LifecycleListener listener)
listener
- the lifecycle listener to add to the serviceServiceTarget removeListener(LifecycleListener listener)
listener
- the lifecycle listener to removeServiceBuilder<?> addService(ServiceName name)
name
- the service nameServiceTarget subTarget()
@Deprecated <T> ServiceBuilder<T> addServiceValue(ServiceName name, Value<? extends Service<T>> value)
addService(ServiceName)
instead.
This method will be removed in a future release.name
- the service namevalue
- the service value@Deprecated <T> ServiceBuilder<T> addService(ServiceName name, Service<T> service)
addService(ServiceName)
instead.
This method will be removed in a future release.name
- the service nameservice
- the service@Deprecated ServiceTarget addMonitor(StabilityMonitor monitor)
monitor
- the monitor to add to the target@Deprecated ServiceTarget addMonitors(StabilityMonitor... monitors)
monitors
- the monitors to add to the target@Deprecated ServiceTarget removeMonitor(StabilityMonitor monitor)
monitor
- the monitor to remove@Deprecated ServiceTarget addListener(ServiceListener<Object> listener)
addListener(LifecycleListener)
instead.
This method will be removed in a future release.listener
- the listener to add to the target@Deprecated ServiceTarget addListener(ServiceListener<Object>... listeners)
addListener(LifecycleListener)
instead.
This method will be removed in a future release.listeners
- a list of listeners to add to the target@Deprecated ServiceTarget addListener(Collection<ServiceListener<Object>> listeners)
addListener(LifecycleListener)
instead.
This method will be removed in a future release.listeners
- a collection of listeners to add to the target@Deprecated ServiceTarget removeListener(ServiceListener<Object> listener)
removeListener(LifecycleListener)
instead.
This method will be removed in a future release.listener
- the listener to remove@Deprecated Set<StabilityMonitor> getMonitors()
@Deprecated Set<ServiceListener<Object>> getListeners()
@Deprecated ServiceTarget addDependency(ServiceName dependency)
dependency
- the dependency to add to the target@Deprecated ServiceTarget addDependency(ServiceName... dependencies)
dependencies
- a list of dependencies to add to the target@Deprecated ServiceTarget addDependency(Collection<ServiceName> dependencies)
dependencies
- a collection of dependencies to add to this target@Deprecated ServiceTarget removeDependency(ServiceName dependency)
dependency
- the dependency@Deprecated Set<ServiceName> getDependencies()
@Deprecated BatchServiceTarget batchTarget()
Copyright © 2021 JBoss by Red Hat. All rights reserved.