Interface PossibleCapabilityRegistry
-
- All Known Implementing Classes:
CapabilityRegistry
public interface PossibleCapabilityRegistryRegistry 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidregisterPossibleCapability(Capability capability, PathAddress registrationPoint)Registers a possible capability with the system.CapabilityRegistration<?>removePossibleCapability(Capability capability, PathAddress registrationPoint)Remove a previously registered possible capability if all registration points for it have been removed.
-
-
-
Method Detail
-
registerPossibleCapability
void registerPossibleCapability(Capability capability, PathAddress registrationPoint)
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
-
-