|
JBoss Modular Service Kernel API 1.0.0.CR2 | |||||||||
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.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. |
|
|
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. |
|
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 |
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 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 addListener(ServiceListener.Inheritance inheritance, ServiceListener<Object> listener)
inheritance
- the inheritance type for this listenerlistener
- the listener to add to the target
ServiceTarget addListener(ServiceListener.Inheritance inheritance, ServiceListener<Object>... listeners)
inheritance
- the inheritance type for this listenerlisteners
- a list of listeners to add to the target
ServiceTarget addListener(ServiceListener.Inheritance inheritance, Collection<ServiceListener<Object>> listeners)
inheritance
- the inheritance type for this listenerlisteners
- a collection of listeners to add to the target
ServiceTarget removeListener(ServiceListener<Object> listener)
listener
- the listener to remove
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 Kernel API 1.0.0.CR2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |