Interface Capability
-
- All Superinterfaces:
Feature
- All Known Implementing Classes:
RuntimeCapability
public interface Capability extends Feature
Basic description of a capability.- Author:
- Tomaz Cerar (c) 2015 Red Hat Inc.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetDynamicName(String dynamicNameElement)Gets the full name of a capability, including a dynamic elementStringgetDynamicName(PathAddress address)StringgetName()Gets the basic name of the capability.Set<String>getRequirements()Gets the names of other capabilities required by this capability.booleanisDynamicallyNamed()Gets whether this capability is a dynamically named one, whose runtime variants will have a dynamic element added to the base name provided bygetName().-
Methods inherited from interface org.jboss.as.controller.Feature
getStability
-
-
-
-
Method Detail
-
getName
String getName()
Gets the basic name of the capability. IfisDynamicallyNamed()returnstruethis will be the basic name of the capability, not including any dynamic portions.- Returns:
- the name. Will not be
null - See Also:
getDynamicName(String)
-
getRequirements
Set<String> getRequirements()
Gets the names of other capabilities required by this capability. These are static requirements.- Returns:
- the capability names. Will not be
nullbut may be empty.
-
isDynamicallyNamed
boolean isDynamicallyNamed()
Gets whether this capability is a dynamically named one, whose runtime variants will have a dynamic element added to the base name provided bygetName().- Returns:
trueif this capability is dynamically named
-
getDynamicName
String getDynamicName(String dynamicNameElement)
Gets the full name of a capability, including a dynamic element- Parameters:
dynamicNameElement- the dynamic portion of the name. Cannot benull- Returns:
- the full capability name
- Throws:
IllegalStateException- ifisDynamicallyNamed()returnsfalse
-
getDynamicName
String getDynamicName(PathAddress address)
-
-