Class CapabilityId

java.lang.Object
org.jboss.as.controller.capability.registry.CapabilityId
All Implemented Interfaces:
Comparable<CapabilityId>

public class CapabilityId extends Object implements Comparable<CapabilityId>
Unique identifier for a capability, encapsulating its name and the scope in which it exists.
Author:
Brian Stansberry (c) 2014 Red Hat Inc.
  • Constructor Details

  • Method Details

    • getName

      public String getName()
      Gets the name of the capability. Must be unique within the given scope, so providers of capabilities should use a distinct namespace as part of the name. The org.wildfly namespace and any child namespaces are reserved for use by the WildFly project or its component projects itself.
      Returns:
      the name. Will not be null
    • getScope

      public CapabilityScope getScope()
      Gets the scope in which the capability exists. A single management process may handle multiple scopes simultaneously, and a given capability may not exist in all of them. An example are the various profiles in a managed domain, some of which may have a capability registered and other may not.
      Returns:
      the context. Will not be null
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • compareTo

      public int compareTo(CapabilityId o)
      Specified by:
      compareTo in interface Comparable<CapabilityId>