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>AServiceBuilderthat supports capability requirements.- Author:
- Paul Ferraro
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description RequirementServiceBuilder<T>addListener(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.RequirementServiceBuilder<T>setInitialMode(org.jboss.msc.service.ServiceController.Mode mode)RequirementServiceBuilder<T>setInstance(org.jboss.msc.Service service)
-
-
-
Method Detail
-
setInitialMode
RequirementServiceBuilder<T> setInitialMode(org.jboss.msc.service.ServiceController.Mode mode)
- Specified by:
setInitialModein interfaceorg.jboss.msc.service.ServiceBuilder<T>
-
setInstance
RequirementServiceBuilder<T> setInstance(org.jboss.msc.Service service)
- Specified by:
setInstancein interfaceorg.jboss.msc.service.ServiceBuilder<T>
-
addListener
RequirementServiceBuilder<T> addListener(org.jboss.msc.service.LifecycleListener listener)
- 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
default <V> Supplier<V> requires(NullaryServiceDescriptor<V> descriptor)
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
default <V> Supplier<V> requires(UnaryServiceDescriptor<V> descriptor, String referenceName)
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
-
-