Package org.jboss.as.controller
Interface CapabilityServiceTarget
-
- All Superinterfaces:
org.jboss.msc.service.ServiceTarget
public interface CapabilityServiceTarget extends org.jboss.msc.service.ServiceTargetThe target of ServiceBuilder for capability installations. CapabilityServiceBuilder to be installed on a target should be retrieved by calling one of theaddCapabilitymethods. 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.-
Methods inherited from interface org.jboss.msc.service.ServiceTarget
addDependency, addDependency, addDependency, addListener, addListener, addListener, addListener, addMonitor, addMonitors, addService, addService, addServiceValue, batchTarget, getDependencies, getListeners, getMonitors, removeDependency, removeListener, removeListener, removeMonitor, subTarget
-
-
-
-
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
-
-