public class TransformationTargetImpl extends Object implements TransformationTarget
TransformationTarget.TransformationTargetType| Modifier and Type | Method and 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 to
|
List<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.
|
public static TransformationTarget createLocal()
public static TransformationTargetImpl create(String hostName, TransformerRegistry transformerRegistry, ModelVersion version, Map<PathAddress,ModelVersion> subsystems, TransformationTarget.TransformationTargetType type)
public static TransformationTargetImpl createForHost(String hostName, TransformerRegistry transformerRegistry, ModelVersion version, Map<PathAddress,ModelVersion> subsystems, Transformers.OperationExcludedTransformationRegistry ignoredRegistry)
public ModelVersion getVersion()
TransformationTargetgetVersion in interface TransformationTargetpublic ModelVersion getSubsystemVersion(String subsystemName)
TransformationTargetgetSubsystemVersion in interface TransformationTargetsubsystemName - the subsystem namenull if it does not existpublic ResourceTransformer resolveTransformer(ResourceTransformationContext context, PathAddress address)
TransformationTargetresolveTransformer in interface TransformationTargetcontext - TODOaddress - the path addresspublic TransformerEntry getTransformerEntry(TransformationContext context, PathAddress address)
TransformationTargetgetTransformerEntry in interface TransformationTargetcontext - TODOaddress - the path addresspublic List<PathAddressTransformer> getPathTransformation(PathAddress address)
TransformationTargetgetPathTransformation in interface TransformationTargetaddress - the path addresspublic OperationTransformer resolveTransformer(TransformationContext context, PathAddress address, String operationName)
TransformationTargetresolveTransformer in interface TransformationTargetcontext - TODOaddress - the addressoperationName - the operation namepublic void addSubsystemVersion(String subsystemName, int majorVersion, int minorVersion)
TransformationTargetaddSubsystemVersion in interface TransformationTargetsubsystemName - the name of the subsystem. Cannot be nullmajorVersion - the major version of the subsystem's management APIminorVersion - the minor version of the subsystem's management APIpublic void addSubsystemVersion(String subsystemName, ModelVersion version)
TransformationTargetaddSubsystemVersion in interface TransformationTargetsubsystemName - the subsystem nameversion - the versionpublic TransformationTarget.TransformationTargetType getTargetType()
TransformationTargetgetTargetType in interface TransformationTargetpublic String getHostName()
TransformationTargetgetHostName in interface TransformationTargetpublic boolean isIgnoredResourceListAvailableAtRegistration()
TransformationTargetisIgnoredResourceListAvailableAtRegistration in interface TransformationTargettrue if the target can provide the ignored resources list; false if that is not supported.public boolean isIgnoreUnaffectedConfig()
isIgnoreUnaffectedConfig in interface TransformationTargetCopyright © 2021 JBoss by Red Hat. All rights reserved.