T - the service typepublic interface CapabilityServiceBuilder<T>
extends org.jboss.msc.service.ServiceBuilder<T>
CapabilityServiceTarget.
Create an instance via the CapabilityServiceTarget.addCapability(RuntimeCapability, Service),
addCapabilityRequirement(String, Class, Injector) or other methods.
Builder also add supports to add capability requirement for service injection via addCapabilityRequirement(String, Class, Injector)| Modifier and Type | Method and Description |
|---|---|
<I> CapabilityServiceBuilder<T> |
addCapabilityRequirement(String capabilityName,
Class<I> type)
Adds capability requirement to capability which we are building
|
<I> CapabilityServiceBuilder<T> |
addCapabilityRequirement(String capabilityName,
Class<I> type,
org.jboss.msc.inject.Injector<I> target)
Adds capability requirement with injection to capability which we are building
|
<I> CapabilityServiceBuilder<T> |
addCapabilityRequirement(String capabilityName,
Class<I> type,
org.jboss.msc.inject.Injector<I> target,
String... referenceNames)
Adds capability requirement with injection to service which we are building
|
<I> CapabilityServiceBuilder<T> |
addDependency(org.jboss.msc.service.ServiceName dependency,
Class<I> type,
org.jboss.msc.inject.Injector<I> target) |
<I> CapabilityServiceBuilder<T> |
addInjection(org.jboss.msc.inject.Injector<? super I> target,
I value) |
CapabilityServiceBuilder<T> |
setInitialMode(org.jboss.msc.service.ServiceController.Mode mode) |
addAliases, addDependencies, addDependencies, addDependencies, addDependencies, addDependency, addDependency, addDependency, addDependency, addDependency, addInjection, addInjectionValue, addListener, addListener, addListener, addListener, addMonitor, addMonitors, install, provides, requires, setInstance<I> CapabilityServiceBuilder<T> addCapabilityRequirement(String capabilityName, Class<I> type, org.jboss.msc.inject.Injector<I> target, String... referenceNames)
I - the type of the value of the dependencycapabilityName - name of capability requirementtype - the class of the value of the dependencytarget - the injector into which the dependency should be storedreferenceNames - dynamic part(s) of capability name, only useful when using dynamic named capabilities<I> CapabilityServiceBuilder<T> addCapabilityRequirement(String capabilityName, Class<I> type, org.jboss.msc.inject.Injector<I> target)
I - the type of the value of the dependencycapabilityName - name of capability requirementtype - the class of the value of the dependencytarget - the injector into which the dependency should be stored<I> CapabilityServiceBuilder<T> addCapabilityRequirement(String capabilityName, Class<I> type)
I - the type of the value of the dependencycapabilityName - name of capability requirementtype - the class of the value of the dependency<I> CapabilityServiceBuilder<T> addDependency(org.jboss.msc.service.ServiceName dependency, Class<I> type, org.jboss.msc.inject.Injector<I> target)
addDependency in interface org.jboss.msc.service.ServiceBuilder<T><I> CapabilityServiceBuilder<T> addInjection(org.jboss.msc.inject.Injector<? super I> target, I value)
addInjection in interface org.jboss.msc.service.ServiceBuilder<T>CapabilityServiceBuilder<T> setInitialMode(org.jboss.msc.service.ServiceController.Mode mode)
setInitialMode in interface org.jboss.msc.service.ServiceBuilder<T>Copyright © 2018 JBoss by Red Hat. All rights reserved.