public class TransformationTargetImpl extends Object implements TransformationTarget
TransformationTarget.IgnoredTransformationRegistry, 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(TransformerRegistry transformerRegistry,
ModelVersion version,
Map<PathAddress,ModelVersion> subsystems,
TransformationTarget.IgnoredTransformationRegistry transformationExclusion,
TransformationTarget.TransformationTargetType type,
RuntimeIgnoreTransformation runtimeIgnoreTransformation) |
ExtensionRegistry |
getExtensionRegistry()
Get the extension registry.
|
String |
getHostName()
Get the name of the host we are talking to
|
List<PathAddressTransformer> |
getPathTransformation(PathAddress address)
Get path transformations.
|
SubsystemInformation |
getSubsystemInformation(String subsystemName) |
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.
|
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 TransformationTargetImpl create(TransformerRegistry transformerRegistry, ModelVersion version, Map<PathAddress,ModelVersion> subsystems, TransformationTarget.IgnoredTransformationRegistry transformationExclusion, TransformationTarget.TransformationTargetType type, RuntimeIgnoreTransformation runtimeIgnoreTransformation)
public ModelVersion getVersion()
TransformationTarget
getVersion
in interface TransformationTarget
public ModelVersion getSubsystemVersion(String subsystemName)
TransformationTarget
getSubsystemVersion
in interface TransformationTarget
subsystemName
- the subsystem namenull
if it does not existpublic SubsystemInformation getSubsystemInformation(String subsystemName)
public ResourceTransformer resolveTransformer(ResourceTransformationContext context, PathAddress address)
TransformationTarget
resolveTransformer
in interface TransformationTarget
context
- TODOaddress
- the path addresspublic TransformerEntry getTransformerEntry(TransformationContext context, PathAddress address)
TransformationTarget
getTransformerEntry
in interface TransformationTarget
context
- TODOaddress
- the path addresspublic List<PathAddressTransformer> getPathTransformation(PathAddress address)
TransformationTarget
getPathTransformation
in interface TransformationTarget
address
- the path addresspublic OperationTransformer resolveTransformer(TransformationContext context, PathAddress address, String operationName)
TransformationTarget
resolveTransformer
in interface TransformationTarget
context
- TODOaddress
- the addressoperationName
- the operation namepublic void addSubsystemVersion(String subsystemName, int majorVersion, int minorVersion)
TransformationTarget
addSubsystemVersion
in interface TransformationTarget
subsystemName
- the name of the subsystem. Cannot be null
majorVersion
- the major version of the subsystem's management APIminorVersion
- the minor version of the subsystem's management APIpublic void addSubsystemVersion(String subsystemName, ModelVersion version)
TransformationTarget
addSubsystemVersion
in interface TransformationTarget
subsystemName
- the subsystem nameversion
- the versionpublic TransformationTarget.TransformationTargetType getTargetType()
TransformationTarget
getTargetType
in interface TransformationTarget
public ExtensionRegistry getExtensionRegistry()
TransformationTarget
getExtensionRegistry
in interface TransformationTarget
public String getHostName()
TransformationTarget
getHostName
in interface TransformationTarget
public boolean isIgnoredResourceListAvailableAtRegistration()
TransformationTarget
isIgnoredResourceListAvailableAtRegistration
in interface TransformationTarget
true
if the target can provide the ignored resources list; false
if that is not supported.Copyright © 2014 JBoss by Red Hat. All rights reserved.