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)
Add a stability monitor that will be added to all the ServiceBuilders installed in this target.
|
ServiceTarget |
addMonitors(StabilityMonitor... monitors)
Deprecated.
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.
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)
Remove a monitor from this target, if it exists.
|
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 removeServiceTarget addMonitor(StabilityMonitor monitor)
monitor - the monitor to add to the targetServiceTarget removeMonitor(StabilityMonitor monitor)
monitor - the monitor 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 addMonitors(StabilityMonitor... monitors)
monitors - the monitors to add to the target@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 © 2018 JBoss by Red Hat. All rights reserved.