Package org.jboss.as.controller
Interface RequirementServiceBuilder<T>
- Type Parameters:
T- an ignored service value type
- All Superinterfaces:
org.jboss.msc.service.ServiceBuilder<T>
- All Known Subinterfaces:
CapabilityServiceBuilder<T>
- All Known Implementing Classes:
RequirementServiceTarget.CapabilityServiceSupportBuilder
public interface RequirementServiceBuilder<T>
extends org.jboss.msc.service.ServiceBuilder<T>
A
ServiceBuilder that supports capability requirements.- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptionaddListener(org.jboss.msc.service.LifecycleListener listener) default <V> Supplier<V>requires(BinaryServiceDescriptor<V> descriptor, String parentName, String childName) Establishes a requirement on the service provided by the capability with the specified descriptor.default <V> Supplier<V>requires(NullaryServiceDescriptor<V> descriptor) Establishes a requirement on the service provided by the capability with the specified descriptor.default <V> Supplier<V>requires(QuaternaryServiceDescriptor<V> descriptor, String greatGrandparentName, String grandparentName, String parentName, String childName) Establishes a requirement on the service provided by the capability with the specified descriptor.default <V> Supplier<V>requires(TernaryServiceDescriptor<V> descriptor, String grandparentName, String parentName, String childName) Establishes a requirement on the service provided by the capability with the specified descriptor.default <V> Supplier<V>requires(UnaryServiceDescriptor<V> descriptor, String referenceName) Establishes a requirement on the service provided by the capability with the specified descriptor.<V> Supplier<V>requiresCapability(String capabilityName, Class<V> dependencyType, String... referenceNames) Establishes a requirement on the specified capability.setInitialMode(org.jboss.msc.service.ServiceController.Mode mode) setInstance(org.jboss.msc.Service service) Methods inherited from interface org.jboss.msc.service.ServiceBuilder
addAliases, addDependency, addMonitor, install, provides, requires
-
Method Details
-
setInitialMode
- Specified by:
setInitialModein interfaceorg.jboss.msc.service.ServiceBuilder<T>
-
setInstance
- Specified by:
setInstancein interfaceorg.jboss.msc.service.ServiceBuilder<T>
-
addListener
- Specified by:
addListenerin interfaceorg.jboss.msc.service.ServiceBuilder<T>
-
requiresCapability
<V> Supplier<V> requiresCapability(String capabilityName, Class<V> dependencyType, String... referenceNames) Establishes a requirement on the specified capability.- Type Parameters:
V- the type of the value of the dependency- Parameters:
capabilityName- name of capability requirementdependencyType- the class of the value of the dependencyreferenceNames- dynamic part(s) of capability name, only useful when using dynamic named capabilities- Returns:
- a reference to the required dependency
-
requires
Establishes a requirement on the service provided by the capability with the specified descriptor.- Type Parameters:
V- the value type of the required service- Parameters:
descriptor- a service descriptor for a capability- Returns:
- a supplier of the service value
-
requires
Establishes a requirement on the service provided by the capability with the specified descriptor.- Type Parameters:
V- the value type of the required service- Parameters:
descriptor- a service descriptor for a capabilityreferenceName- the dynamic component of the capability name- Returns:
- a supplier of the service value
-
requires
default <V> Supplier<V> requires(BinaryServiceDescriptor<V> descriptor, String parentName, String childName) Establishes a requirement on the service provided by the capability with the specified descriptor.- Type Parameters:
V- the value type of the required service- Parameters:
descriptor- a service descriptor for a capabilityparentName- the first dynamic component of the capability namechildName- the second dynamic component of the capability name- Returns:
- a supplier of the service value
-
requires
default <V> Supplier<V> requires(TernaryServiceDescriptor<V> descriptor, String grandparentName, String parentName, String childName) Establishes a requirement on the service provided by the capability with the specified descriptor.- Type Parameters:
V- the value type of the required service- Parameters:
descriptor- a service descriptor for a capabilitygrandparentName- the first dynamic component of the capability nameparentName- the second dynamic component of the capability namechildName- the third dynamic component of the capability name- Returns:
- a supplier of the service value
-
requires
default <V> Supplier<V> requires(QuaternaryServiceDescriptor<V> descriptor, String greatGrandparentName, String grandparentName, String parentName, String childName) Establishes a requirement on the service provided by the capability with the specified descriptor.- Type Parameters:
V- the value type of the required service- Parameters:
descriptor- a service descriptor for a capabilitygreatGrandparentName- the first dynamic component of the capability namegrandparentName- the second dynamic component of the capability nameparentName- the third dynamic component of the capability namechildName- the fourth dynamic component of the capability name- Returns:
- a supplier of the service value
-