Interface PossibleCapabilityRegistry
- All Known Implementing Classes:
CapabilityRegistry
public interface PossibleCapabilityRegistry
Registry that holds possible capabilities.
Possible capabilities are definitions of capabilities that are registered on resource to provide information of what all real or runtime capabilities will be registered once instance of said resource is added to resource tree.
- Author:
- Tomaz Cerar (c) 2015 Red Hat Inc.
-
Method Summary
Modifier and TypeMethodDescriptionvoidregisterPossibleCapability(Capability capability, PathAddress registrationPoint) Registers a possible capability with the system.removePossibleCapability(Capability capability, PathAddress registrationPoint) Remove a previously registered possible capability if all registration points for it have been removed.
-
Method Details
-
registerPossibleCapability
Registers a possible capability with the system.- Parameters:
capability- the possible capability. Cannot benull
-
removePossibleCapability
CapabilityRegistration<?> removePossibleCapability(Capability capability, PathAddress registrationPoint) Remove a previously registered possible capability if all registration points for it have been removed.- Parameters:
capability- the capability. Cannot benullregistrationPoint- the specific registration point that is being removed- Returns:
- the capability that was removed, or
nullif no matching capability was registered or other registration points for the capability still exist
-