C - the specific type of capability that can be registeredpublic interface CapabilityRegistry<C extends CapabilityRegistration,R extends RequirementRegistration>
capabilities available in the system.| Modifier and Type | Method and Description |
|---|---|
boolean |
hasCapability(String capabilityName,
CapabilityContext context)
Gets whether a capability with the given name is registered.
|
void |
registerAdditionalCapabilityRequirement(R requirement)
Registers an additional requirement a capability has beyond what it was aware of when
capability
was passed to registerCapability(CapabilityRegistration). |
void |
registerCapability(C capability)
Registers a capability with the system.
|
C |
removeCapability(String capabilityName,
CapabilityContext context,
PathAddress registrationPoint)
Remove a previously registered capability if all registration points for it have been removed.
|
void |
removeCapabilityRequirement(R requirement)
Remove a previously registered requirement for a capability.
|
void registerCapability(C capability)
requirements
associated with the capability will be recorded as requirements.capability - the capability. Cannot be nullvoid registerAdditionalCapabilityRequirement(R requirement)
capability
was passed to registerCapability(CapabilityRegistration). Used for cases
where a capability optionally depends on another capability, and whether or not that requirement is needed is
not known when the capability is first registered.requirement - the requirementIllegalArgumentException - if no matching capability is currently
registered for either required or dependentvoid removeCapabilityRequirement(R requirement)
requirement - the requirement. Cannot be nullregisterAdditionalCapabilityRequirement(org.jboss.as.controller.capability.registry.RequirementRegistration)C removeCapability(String capabilityName, CapabilityContext context, PathAddress registrationPoint)
capabilityName - the name of the capability. Cannot be nullcontext - the context in which the capability is registered. Cannot be nullregistrationPoint - the specific registration point that is being removednull if no matching capability was registered or other
registration points for the capability still existboolean hasCapability(String capabilityName, CapabilityContext context)
capabilityName - the name of the capability. Cannot be nullcontext - the context in which to check for the capabilitytrue if there is a capability with the given name registeredCopyright © 2015 JBoss by Red Hat. All rights reserved.