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 Detail

      • registerPossibleCapability

        void registerPossibleCapability​(Capability capability,
                                        PathAddress registrationPoint)
        Registers a possible capability with the system.
        Parameters:
        capability - the possible capability. Cannot be null
      • 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 be null
        registrationPoint - the specific registration point that is being removed
        Returns:
        the capability that was removed, or null if no matching capability was registered or other registration points for the capability still exist