Package org.jboss.as.controller
Interface CapabilityServiceTarget
-
- All Superinterfaces:
org.jboss.msc.service.ServiceTarget
public interface CapabilityServiceTarget extends org.jboss.msc.service.ServiceTarget
The target of ServiceBuilder for capability installations. CapabilityServiceBuilder to be installed on a target should be retrieved by calling one of theaddCapability
methods. Notice that installation will only take place afterServiceBuilder.install()
is invoked. CapabilityServiceBuilder that are not installed are ignored.- Author:
- Tomaz Cerar (c) 2017 Red Hat Inc., Richard Opalka
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CapabilityServiceBuilder<?>
addCapability(RuntimeCapability<?> capability)
Gets a builder which can be used to add a capability service into this capability target.
-
-
-
Method Detail
-
addCapability
CapabilityServiceBuilder<?> addCapability(RuntimeCapability<?> capability) throws IllegalArgumentException
Gets a builder which can be used to add a capability service into this capability target.- Parameters:
capability
- the capability to be installed- Returns:
- new capability builder instance
- Throws:
IllegalArgumentException
- if capability does not provide a service
-
-