public interface RuntimeCapabilityRegistry extends ImmutableCapabilityRegistry
capabilities
available in the runtime.Modifier and Type | Method and Description |
---|---|
void |
registerAdditionalCapabilityRequirement(RuntimeRequirementRegistration requirement)
Registers an additional requirement a capability has beyond what it was aware of when
capability
was passed to registerCapability(RuntimeCapabilityRegistration) . |
void |
registerCapability(RuntimeCapabilityRegistration capability)
Registers a capability with the system.
|
RuntimeCapabilityRegistration |
removeCapability(String capabilityName,
CapabilityScope scope,
PathAddress registrationPoint)
Remove a previously registered capability if all registration points for it have been removed.
|
void |
removeCapabilityRequirement(RuntimeRequirementRegistration requirement)
Remove a previously registered requirement for a capability.
|
getCapabilities, getCapabilityRuntimeAPI, getCapabilityServiceName, getPossibleCapabilities, getPossibleProviderPoints, hasCapability
void registerCapability(RuntimeCapabilityRegistration capability)
requirements
associated with the capability will be recorded as requirements.capability
- the capability. Cannot be null
void registerAdditionalCapabilityRequirement(RuntimeRequirementRegistration requirement)
capability
was passed to registerCapability(RuntimeCapabilityRegistration)
. 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 dependent
void removeCapabilityRequirement(RuntimeRequirementRegistration requirement)
requirement
- the requirement. Cannot be null
registerAdditionalCapabilityRequirement(org.jboss.as.controller.capability.registry.RuntimeRequirementRegistration)
RuntimeCapabilityRegistration removeCapability(String capabilityName, CapabilityScope scope, PathAddress registrationPoint)
capabilityName
- the name of the capability. Cannot be null
scope
- the scope in which the capability is registered. Cannot be null
registrationPoint
- the specific registration point that is being removednull
if no matching capability was registered or other
registration points for the capability still existIllegalStateException
- if no capability with the given name is available in the given contextIllegalArgumentException
- if the capability does not provide a runtime APIClassCastException
- if the runtime API exposed by the capability cannot be cast to type {code T}Copyright © 2023 JBoss by Red Hat. All rights reserved.