public interface RuntimeCapabilityRegistry extends CapabilityRegistry<RuntimeCapabilityRegistration,RuntimeRequirementRegistration>
capabilities available in the runtime.| Modifier and Type | Method and Description |
|---|---|
<T> T |
getCapabilityRuntimeAPI(String capabilityName,
CapabilityContext context,
Class<T> apiType)
Gets the runtime API associated with a given capability, if there is one.
|
org.jboss.msc.service.ServiceName |
getCapabilityServiceName(String capabilityName,
CapabilityContext context,
Class<?> serviceType) |
hasCapability, registerAdditionalCapabilityRequirement, registerCapability, removeCapability, removeCapabilityRequirement<T> T getCapabilityRuntimeAPI(String capabilityName, CapabilityContext context, Class<T> apiType)
T - the java type that exposes the APIcapabilityName - the name of the capability. Cannot be nullcontext - the context in which to resolve the capability. Cannot be nullapiType - class of the java type that exposes the API. Cannot be nullnullIllegalArgumentException - if the capability does not provide a runtime APIClassCastException - if the runtime API exposed by the capability cannot be cast to type {code T}org.jboss.msc.service.ServiceName getCapabilityServiceName(String capabilityName, CapabilityContext context, Class<?> serviceType)
Copyright © 2015 JBoss by Red Hat. All rights reserved.