Class AbstractCapability
- java.lang.Object
-
- org.jboss.as.controller.capability.AbstractCapability
-
- All Implemented Interfaces:
Capability
- Direct Known Subclasses:
RuntimeCapability
@Deprecated public abstract class AbstractCapability extends Object implements Capability
Deprecated.Will be made non-public in a future release.Base class for a core or subsystem capability.- Author:
- Brian Stansberry (c) 2014 Red Hat Inc.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractCapability(String name, boolean dynamic, Set<String> requirements, Set<String> optionalRequirements, Set<String> runtimeOnlyRequirements, Set<String> dynamicRequirements, Set<String> dynamicOptionalRequirements, Function<PathAddress,String[]> dynamicNameMapper)Deprecated.Expected to be removed or hidden in the next WildFly Core release
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object o)Deprecated.StringgetDynamicName(String dynamicNameElement)Deprecated.Gets the full name of a capability, including a dynamic elementStringgetDynamicName(PathAddress address)Deprecated.Set<String>getDynamicOptionalRequirements()Deprecated.Gets the names of other dynamically named capabilities upon a concrete instance of which this capability will have an optional requirement once the full name is known.Set<String>getDynamicRequirements()Deprecated.Gets the names of other dynamically named capabilities upon a concrete instance of which this capability will have a hard requirement once the full name is known.StringgetName()Deprecated.Gets the basic name of the capability.Set<String>getOptionalRequirements()Deprecated.Gets the names of other capabilities optionally required by this capability.Set<String>getRequirements()Deprecated.Gets the names of other capabilities required by this capability.Set<String>getRuntimeOnlyRequirements()Deprecated.Gets the names of other capabilities optionally used by this capability if they are present in the runtime, but where the use of the other capability will never be mandated by the persistent configuration.inthashCode()Deprecated.booleanisDynamicallyNamed()Deprecated.Gets whether this capability is a dynamically named one, whose runtime variants will have a dynamic element added to the base name provided byCapability.getName().StringtoString()Deprecated.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jboss.as.controller.capability.Capability
getAdditionalRequiredPackages
-
-
-
-
Constructor Detail
-
AbstractCapability
@Deprecated protected AbstractCapability(String name, boolean dynamic, Set<String> requirements, Set<String> optionalRequirements, Set<String> runtimeOnlyRequirements, Set<String> dynamicRequirements, Set<String> dynamicOptionalRequirements, Function<PathAddress,String[]> dynamicNameMapper)
Deprecated.Expected to be removed or hidden in the next WildFly Core releaseCreates a new capability- Parameters:
name- the name of the capability. Cannot benullrequirements- names of other capabilities upon which this capability has a hard requirement. May benulloptionalRequirements- Ignored. May benullruntimeOnlyRequirements- Ignored. May benulldynamicRequirements- Ignored. May benulldynamicOptionalRequirements- Ignored. May benulldynamicNameMapper- a function to be used to convert from a PathAddress to the dynamic elements in a dynamically named capability. May benull
-
-
Method Detail
-
getName
public String getName()
Deprecated.Description copied from interface:CapabilityGets the basic name of the capability. IfCapability.isDynamicallyNamed()returnstruethis will be the basic name of the capability, not including any dynamic portions.- Specified by:
getNamein interfaceCapability- Returns:
- the name. Will not be
null - See Also:
Capability.getDynamicName(String)
-
getRequirements
public Set<String> getRequirements()
Deprecated.Description copied from interface:CapabilityGets the names of other capabilities required by this capability. These are static requirements.- Specified by:
getRequirementsin interfaceCapability- Returns:
- the capability names. Will not be
nullbut may be empty.
-
getOptionalRequirements
public Set<String> getOptionalRequirements()
Deprecated.Description copied from interface:CapabilityGets the names of other capabilities optionally required by this capability. Whether this capability will actually require the other capabilities is not statically known but rather depends on this capability's own configuration.- Specified by:
getOptionalRequirementsin interfaceCapability- Returns:
- the capability names. Will not be
nullbut may be empty.
-
getRuntimeOnlyRequirements
public Set<String> getRuntimeOnlyRequirements()
Deprecated.Description copied from interface:CapabilityGets the names of other capabilities optionally used by this capability if they are present in the runtime, but where the use of the other capability will never be mandated by the persistent configuration. Differs fromoptional requirementsin that optional requirements may or may not be specified by the persistent configuration, but if they are the capability must be present or the configuration is invalid.- Specified by:
getRuntimeOnlyRequirementsin interfaceCapability- Returns:
- the capability names. Will not be
nullbut may be empty.
-
getDynamicRequirements
public Set<String> getDynamicRequirements()
Deprecated.Description copied from interface:CapabilityGets the names of other dynamically named capabilities upon a concrete instance of which this capability will have a hard requirement once the full name is known. It is statically known that some variant of these base capability names will be required, but the exact name will not be known until this capability's configuration is read.- Specified by:
getDynamicRequirementsin interfaceCapability- Returns:
- the capability names. Will not be
nullbut may be empty.
-
getDynamicOptionalRequirements
public Set<String> getDynamicOptionalRequirements()
Deprecated.Description copied from interface:CapabilityGets the names of other dynamically named capabilities upon a concrete instance of which this capability will have an optional requirement once the full name is known. Whether this capability will actually require the other capabilities is not statically known but rather depends on this capability's own configuration.- Specified by:
getDynamicOptionalRequirementsin interfaceCapability- Returns:
- the capability names. Will not be
nullbut may be empty.
-
isDynamicallyNamed
public boolean isDynamicallyNamed()
Deprecated.Description copied from interface:CapabilityGets whether this capability is a dynamically named one, whose runtime variants will have a dynamic element added to the base name provided byCapability.getName().- Specified by:
isDynamicallyNamedin interfaceCapability- Returns:
trueif this capability is dynamically named
-
getDynamicName
public String getDynamicName(String dynamicNameElement)
Deprecated.Description copied from interface:CapabilityGets the full name of a capability, including a dynamic element- Specified by:
getDynamicNamein interfaceCapability- Parameters:
dynamicNameElement- the dynamic portion of the name. Cannot benull- Returns:
- the full capability name
-
getDynamicName
public String getDynamicName(PathAddress address)
Deprecated.- Specified by:
getDynamicNamein interfaceCapability
-
equals
public boolean equals(Object o)
Deprecated.
-
-