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)
Remove a previously registered capability.
|
void |
removeCapabilityRequirement(RequirementRegistration 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(RequirementRegistration requirement)
requirement - the requirement. Cannot be nullregisterAdditionalCapabilityRequirement(org.jboss.as.controller.capability.registry.RequirementRegistration)C removeCapability(String capabilityName, CapabilityContext context)
capabilityName - the name of the capability. Cannot be nullcontext - the context in which the capability is registered. Cannot be nullnull if no matching capability was registeredboolean 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 © 2014 JBoss by Red Hat. All rights reserved.