|
JBoss Modular Service Container 1.2.0.Beta2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ServiceTarget

The target of ServiceBuilder installations.
ServicesBuilders to be installed on a target should be retrieved by calling one of the 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.
| Method Summary | ||
|---|---|---|
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<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. |
|
|
addService(ServiceName name,
Service<T> service)
Get a builder which can be used to add a service to this target. |
|
|
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. |
|
| Method Detail |
|---|
<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 service
ServiceTarget addMonitor(StabilityMonitor monitor)
monitor - the monitor to add to the target
ServiceTarget addMonitors(StabilityMonitor... monitors)
monitors - the monitors to add to the target
ServiceTarget addListener(ServiceListener<Object> listener)
listener - the listener to add to the target
ServiceTarget addListener(ServiceListener<Object>... listeners)
listeners - a list of listeners to add to the target
ServiceTarget addListener(Collection<ServiceListener<Object>> listeners)
listeners - a collection of listeners to add to the target
ServiceTarget removeMonitor(StabilityMonitor monitor)
monitor - the monitor to remove
ServiceTarget removeListener(ServiceListener<Object> listener)
listener - the listener to remove
Set<StabilityMonitor> getMonitors()
Set<ServiceListener<Object>> getListeners()
ServiceTarget addDependency(ServiceName dependency)
dependency - the dependency to add to the target
ServiceTarget addDependency(ServiceName... dependencies)
dependencies - a list of dependencies to add to the target
ServiceTarget addDependency(Collection<ServiceName> dependencies)
dependencies - a collection of dependencies to add to this target
ServiceTarget removeDependency(ServiceName dependency)
dependency - the dependency
Set<ServiceName> getDependencies()
ServiceTarget subTarget()
BatchServiceTarget batchTarget()
|
JBoss Modular Service Container 1.2.0.Beta2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||