Class TransformationTargetImpl
- java.lang.Object
-
- org.jboss.as.controller.transform.TransformationTargetImpl
-
- All Implemented Interfaces:
TransformationTarget
public class TransformationTargetImpl extends Object implements TransformationTarget
- Author:
- Tomaz Cerar
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jboss.as.controller.transform.TransformationTarget
TransformationTarget.TransformationTargetType
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSubsystemVersion(String subsystemName, int majorVersion, int minorVersion)
Add version information for a subsystem.void
addSubsystemVersion(String subsystemName, ModelVersion version)
Add version information for a subsystem.static TransformationTargetImpl
create(String hostName, TransformerRegistry transformerRegistry, ModelVersion version, Map<PathAddress,ModelVersion> subsystems, TransformationTarget.TransformationTargetType type)
static TransformationTargetImpl
createForHost(String hostName, TransformerRegistry transformerRegistry, ModelVersion version, Map<PathAddress,ModelVersion> subsystems, Transformers.OperationExcludedTransformationRegistry ignoredRegistry)
static TransformationTarget
createLocal()
String
getHostName()
Get the name of the host we are talking toList<PathAddressTransformer>
getPathTransformation(PathAddress address)
Get path transformations.ModelVersion
getSubsystemVersion(String subsystemName)
Get the subsystem version.TransformationTarget.TransformationTargetType
getTargetType()
Get the type of the target.TransformerEntry
getTransformerEntry(TransformationContext context, PathAddress address)
Get the transformer entry.ModelVersion
getVersion()
Get the version of this target.boolean
isIgnoredResourceListAvailableAtRegistration()
Gets whether this target can make its list of ignored resources known when it registers.boolean
isIgnoreUnaffectedConfig()
ResourceTransformer
resolveTransformer(ResourceTransformationContext context, PathAddress address)
Resolve a resource transformer for agiven address.OperationTransformer
resolveTransformer(TransformationContext context, PathAddress address, String operationName)
Resolve an operation transformer for a given address.
-
-
-
Method Detail
-
createLocal
public static TransformationTarget createLocal()
-
create
public static TransformationTargetImpl create(String hostName, TransformerRegistry transformerRegistry, ModelVersion version, Map<PathAddress,ModelVersion> subsystems, TransformationTarget.TransformationTargetType type)
-
createForHost
public static TransformationTargetImpl createForHost(String hostName, TransformerRegistry transformerRegistry, ModelVersion version, Map<PathAddress,ModelVersion> subsystems, Transformers.OperationExcludedTransformationRegistry ignoredRegistry)
-
getVersion
public ModelVersion getVersion()
Description copied from interface:TransformationTarget
Get the version of this target.- Specified by:
getVersion
in interfaceTransformationTarget
- Returns:
- the model version
-
getSubsystemVersion
public ModelVersion getSubsystemVersion(String subsystemName)
Description copied from interface:TransformationTarget
Get the subsystem version.- Specified by:
getSubsystemVersion
in interfaceTransformationTarget
- Parameters:
subsystemName
- the subsystem name- Returns:
- the version of the specified subsystem,
null
if it does not exist
-
resolveTransformer
public ResourceTransformer resolveTransformer(ResourceTransformationContext context, PathAddress address)
Description copied from interface:TransformationTarget
Resolve a resource transformer for agiven address.- Specified by:
resolveTransformer
in interfaceTransformationTarget
- Parameters:
context
- TODOaddress
- the path address- Returns:
- the transformer
-
getTransformerEntry
public TransformerEntry getTransformerEntry(TransformationContext context, PathAddress address)
Description copied from interface:TransformationTarget
Get the transformer entry.- Specified by:
getTransformerEntry
in interfaceTransformationTarget
- Parameters:
context
- TODOaddress
- the path address- Returns:
- the transformer entry
-
getPathTransformation
public List<PathAddressTransformer> getPathTransformation(PathAddress address)
Description copied from interface:TransformationTarget
Get path transformations.- Specified by:
getPathTransformation
in interfaceTransformationTarget
- Parameters:
address
- the path address- Returns:
- a list of registered path transformers
-
resolveTransformer
public OperationTransformer resolveTransformer(TransformationContext context, PathAddress address, String operationName)
Description copied from interface:TransformationTarget
Resolve an operation transformer for a given address.- Specified by:
resolveTransformer
in interfaceTransformationTarget
- Parameters:
context
- TODOaddress
- the addressoperationName
- the operation name- Returns:
- the operation transformer
-
addSubsystemVersion
public void addSubsystemVersion(String subsystemName, int majorVersion, int minorVersion)
Description copied from interface:TransformationTarget
Add version information for a subsystem.- Specified by:
addSubsystemVersion
in interfaceTransformationTarget
- Parameters:
subsystemName
- the name of the subsystem. Cannot benull
majorVersion
- the major version of the subsystem's management APIminorVersion
- the minor version of the subsystem's management API
-
addSubsystemVersion
public void addSubsystemVersion(String subsystemName, ModelVersion version)
Description copied from interface:TransformationTarget
Add version information for a subsystem.- Specified by:
addSubsystemVersion
in interfaceTransformationTarget
- Parameters:
subsystemName
- the subsystem nameversion
- the version
-
getTargetType
public TransformationTarget.TransformationTargetType getTargetType()
Description copied from interface:TransformationTarget
Get the type of the target.- Specified by:
getTargetType
in interfaceTransformationTarget
- Returns:
- the target type
-
getHostName
public String getHostName()
Description copied from interface:TransformationTarget
Get the name of the host we are talking to- Specified by:
getHostName
in interfaceTransformationTarget
-
isIgnoredResourceListAvailableAtRegistration
public boolean isIgnoredResourceListAvailableAtRegistration()
Description copied from interface:TransformationTarget
Gets whether this target can make its list of ignored resources known when it registers.- Specified by:
isIgnoredResourceListAvailableAtRegistration
in interfaceTransformationTarget
- Returns:
true
if the target can provide the ignored resources list;false
if that is not supported.
-
isIgnoreUnaffectedConfig
public boolean isIgnoreUnaffectedConfig()
- Specified by:
isIgnoreUnaffectedConfig
in interfaceTransformationTarget
-
-