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 Summary
Constructors Constructor Description CapabilityId(String name, CapabilityScope scope)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(CapabilityId o)booleanequals(Object o)StringgetName()Gets the name of the capability.CapabilityScopegetScope()Gets the scope in which the capability exists.inthashCode()StringtoString()
-
-
-
Constructor Detail
-
CapabilityId
public CapabilityId(String name, CapabilityScope scope)
-
-
Method Detail
-
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. Theorg.wildflynamespace 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
-
compareTo
public int compareTo(CapabilityId o)
- Specified by:
compareToin interfaceComparable<CapabilityId>
-
-