public interface ServiceTarget
addService
methods
(addService(ServiceName, Service)
, addServiceValue(ServiceName, Value)
.
Notice that installation will only take place after ServiceBuilder.install()
is invoked. ServiceBuilders that
are not installed are ignored.Modifier and Type | Method and Description |
---|---|
ServiceTarget |
addDependency(Collection<ServiceName> dependencies)
Add a collection of dependencies that will be added to the all ServiceBuilders installed in this target
|
ServiceTarget |
addDependency(ServiceName... dependencies)
Add a list of dependencies that will be added to the all ServiceBuilders installed in this target.
|
ServiceTarget |
addDependency(ServiceName dependency)
Add a dependency that will be added to the all ServiceBuilders installed in this target.
|
ServiceTarget |
addListener(Collection<ServiceListener<Object>> listeners)
Add a collection of service listener that will be added to all ServiceBuilders installed in this target.
|
ServiceTarget |
addListener(ServiceListener.Inheritance inheritance,
Collection<ServiceListener<Object>> listeners)
Add a collection of service listener that will be added to all ServiceBuilders installed in this target.
|
ServiceTarget |
addListener(ServiceListener.Inheritance inheritance,
ServiceListener<Object>... listeners)
Add a list of service listener that will be added to all ServiceBuilders installed in this target.
|
ServiceTarget |
addListener(ServiceListener.Inheritance inheritance,
ServiceListener<Object> listener)
Add a service listener that will be added to all the ServiceBuilders installed in this target.
|
ServiceTarget |
addListener(ServiceListener<Object>... listeners)
Add a list of service listener that will be added to all ServiceBuilders installed in this target.
|
ServiceTarget |
addListener(ServiceListener<Object> listener)
Add a service listener that will be added to all the ServiceBuilders installed in this target.
|
ServiceTarget |
addMonitor(StabilityMonitor monitor)
Add a stability monitor that will be added to all the ServiceBuilders installed in this target.
|
ServiceTarget |
addMonitors(StabilityMonitor... monitors)
Add a stability monitors that will be added to all the ServiceBuilders installed in this target.
|
<T> ServiceBuilder<T> |
addService(ServiceName name,
Service<T> service)
Get a builder which can be used to add a service to this target.
|
<T> ServiceBuilder<T> |
addServiceValue(ServiceName name,
Value<? extends Service<T>> value)
Get a builder which can be used to add a service to this target.
|
BatchServiceTarget |
batchTarget()
Create a new batch service target, which is used to install described services in this target.
|
Set<ServiceName> |
getDependencies()
Returns a set of all dependencies added to this target.
|
Set<ServiceListener<Object>> |
getListeners()
Returns a set of the listeners added to this target.
|
Set<StabilityMonitor> |
getMonitors()
Returns a set of the monitors added to this target.
|
ServiceTarget |
removeDependency(ServiceName dependency)
Remove a dependency from this target.
|
ServiceTarget |
removeListener(ServiceListener<Object> listener)
Remove a listener from this target, if it exists.
|
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.
|
<T> ServiceBuilder<T> addServiceValue(ServiceName name, Value<? extends Service<T>> value)
name
- the service namevalue
- the service value<T> ServiceBuilder<T> addService(ServiceName name, Service<T> service)
name
- the service nameservice
- the serviceServiceTarget addMonitor(StabilityMonitor monitor)
monitor
- the monitor to add to the targetServiceTarget addMonitors(StabilityMonitor... monitors)
monitors
- the monitors to add to the targetServiceTarget addListener(ServiceListener<Object> listener)
listener
- the listener to add to the targetServiceTarget addListener(ServiceListener<Object>... listeners)
listeners
- a list of listeners to add to the targetServiceTarget addListener(Collection<ServiceListener<Object>> listeners)
listeners
- a collection of listeners to add to the targetServiceTarget addListener(ServiceListener.Inheritance inheritance, ServiceListener<Object> listener)
inheritance
- the inheritance type for this listenerlistener
- the listener to add to the targetServiceTarget addListener(ServiceListener.Inheritance inheritance, ServiceListener<Object>... listeners)
inheritance
- the inheritance type for this listenerlisteners
- a list of listeners to add to the targetServiceTarget addListener(ServiceListener.Inheritance inheritance, Collection<ServiceListener<Object>> listeners)
inheritance
- the inheritance type for this listenerlisteners
- a collection of listeners to add to the targetServiceTarget removeMonitor(StabilityMonitor monitor)
monitor
- the monitor to removeServiceTarget removeListener(ServiceListener<Object> listener)
listener
- the listener to removeSet<StabilityMonitor> getMonitors()
Set<ServiceListener<Object>> getListeners()
ServiceTarget addDependency(ServiceName dependency)
dependency
- the dependency to add to the targetServiceTarget addDependency(ServiceName... dependencies)
dependencies
- a list of dependencies to add to the targetServiceTarget addDependency(Collection<ServiceName> dependencies)
dependencies
- a collection of dependencies to add to this targetServiceTarget removeDependency(ServiceName dependency)
dependency
- the dependencySet<ServiceName> getDependencies()
ServiceTarget subTarget()
BatchServiceTarget batchTarget()
Copyright © 2018 JBoss by Red Hat. All rights reserved.