|
JBoss Modular Service Kernel API 1.0.0.Beta1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BatchBuilder

A batch builder for installing service definitions in a single action. Create an instance via the
ServiceContainer.batchBuilder() method.
| Method Summary | ||
|---|---|---|
BatchBuilder |
addDependency(Collection<ServiceName> dependencies)
Add a collection of dependencies that will be added to the all the ServiceDefinitions in the batch. |
|
BatchBuilder |
addDependency(ServiceName... dependencies)
Add a list of dependencies that will be added to the all the ServiceDefinitions in the batch. |
|
BatchBuilder |
addDependency(ServiceName dependency)
Add a dependency that will be added to the all the ServiceDefinitions in the batch. |
|
BatchBuilder |
addListener(Collection<ServiceListener<Object>> listeners)
Add a collection of service listener that will be added to the all the ServiceDefinitions in the batch. |
|
BatchBuilder |
addListener(ServiceListener<Object>... listeners)
Add a list of service listener that will be added to the all the ServiceDefinitions in the batch. |
|
BatchBuilder |
addListener(ServiceListener<Object> listener)
Add a service listener that will be added to the all the ServiceDefinitions in the batch. |
|
|
addService(ServiceName name,
Service<T> service)
Get a builder which can be used to add a service to this batch. |
|
|
addServiceValue(ServiceName name,
Value<? extends Service<T>> value)
Get a builder which can be used to add a service to this batch. |
|
|
addServiceValueIfNotExist(ServiceName name,
Value<? extends Service<T>> value)
Get a builder which can be used to add a service to this batch which is installed only if another service with the same name does not already exist. |
|
void |
install()
Install all the defined services into the container. |
|
BatchBuilder |
subBatchBuilder()
Create a sub-batch using this as the parent batch. |
|
| Method Detail |
|---|
<T> BatchServiceBuilder<T> addServiceValue(ServiceName name,
Value<? extends Service<T>> value)
throws IllegalArgumentException
name - the service namevalue - the service value
IllegalArgumentException
<T> BatchServiceBuilder<T> addService(ServiceName name,
Service<T> service)
throws IllegalArgumentException
name - the service nameservice - the service
IllegalArgumentException
<T> BatchServiceBuilder<T> addServiceValueIfNotExist(ServiceName name,
Value<? extends Service<T>> value)
throws IllegalArgumentException
Values.cached(Value) for more information). Note that any provided aliases
must not exist previously if the service is installed, or an error will occur.
name - the service namevalue - the service value
IllegalArgumentExceptionBatchBuilder addListener(ServiceListener<Object> listener)
listener - the listener to add to the batch
BatchBuilder addListener(ServiceListener<Object>... listeners)
listeners - a list of listeners to add to the batch
BatchBuilder addListener(Collection<ServiceListener<Object>> listeners)
listeners - a collection of listeners to add to the batch
BatchBuilder addDependency(ServiceName dependency)
dependency - the dependency to add to the batch
BatchBuilder addDependency(ServiceName... dependencies)
dependencies - a list of dependencies to add to the batch
BatchBuilder addDependency(Collection<ServiceName> dependencies)
dependencies - a collection of dependencies to add to the batch
void install()
throws ServiceRegistryException
ServiceRegistryExceptionBatchBuilder subBatchBuilder()
|
JBoss Modular Service Kernel API 1.0.0.Beta1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||