Class TransformationTargetImpl
java.lang.Object
org.jboss.as.controller.transform.TransformationTargetImpl
- All Implemented Interfaces:
TransformationTarget
- Author:
- Tomaz Cerar
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jboss.as.controller.transform.TransformationTarget
TransformationTarget.TransformationTargetType -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSubsystemVersion(String subsystemName, int majorVersion, int minorVersion) Add version information for a subsystem.voidaddSubsystemVersion(String subsystemName, ModelVersion version) Add version information for a subsystem.static TransformationTargetImplcreate(String hostName, TransformerRegistry transformerRegistry, ModelVersion version, Map<PathAddress, ModelVersion> subsystems, TransformationTarget.TransformationTargetType type) static TransformationTargetImplcreateForHost(String hostName, TransformerRegistry transformerRegistry, ModelVersion version, Map<PathAddress, ModelVersion> subsystems, Transformers.OperationExcludedTransformationRegistry ignoredRegistry) static TransformationTargetGet the name of the host we are talking togetPathTransformation(PathAddress address) Get path transformations.getSubsystemVersion(String subsystemName) Get the subsystem version.Get the type of the target.getTransformerEntry(TransformationContext context, PathAddress address) Get the transformer entry.Get the version of this target.booleanGets whether this target can make its list of ignored resources known when it registers.booleanresolveTransformer(ResourceTransformationContext context, PathAddress address) Resolve a resource transformer for agiven address.resolveTransformer(TransformationContext context, PathAddress address, String operationName) Resolve an operation transformer for a given address.
-
Method Details
-
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
Description copied from interface:TransformationTargetGet the version of this target.- Specified by:
getVersionin interfaceTransformationTarget- Returns:
- the model version
-
getSubsystemVersion
Description copied from interface:TransformationTargetGet the subsystem version.- Specified by:
getSubsystemVersionin interfaceTransformationTarget- Parameters:
subsystemName- the subsystem name- Returns:
- the version of the specified subsystem,
nullif it does not exist
-
resolveTransformer
public ResourceTransformer resolveTransformer(ResourceTransformationContext context, PathAddress address) Description copied from interface:TransformationTargetResolve a resource transformer for agiven address.- Specified by:
resolveTransformerin interfaceTransformationTarget- Parameters:
context- TODOaddress- the path address- Returns:
- the transformer
-
getTransformerEntry
Description copied from interface:TransformationTargetGet the transformer entry.- Specified by:
getTransformerEntryin interfaceTransformationTarget- Parameters:
context- TODOaddress- the path address- Returns:
- the transformer entry
-
getPathTransformation
Description copied from interface:TransformationTargetGet path transformations.- Specified by:
getPathTransformationin 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:TransformationTargetResolve an operation transformer for a given address.- Specified by:
resolveTransformerin interfaceTransformationTarget- Parameters:
context- TODOaddress- the addressoperationName- the operation name- Returns:
- the operation transformer
-
addSubsystemVersion
Description copied from interface:TransformationTargetAdd version information for a subsystem.- Specified by:
addSubsystemVersionin interfaceTransformationTarget- Parameters:
subsystemName- the name of the subsystem. Cannot benullmajorVersion- the major version of the subsystem's management APIminorVersion- the minor version of the subsystem's management API
-
addSubsystemVersion
Description copied from interface:TransformationTargetAdd version information for a subsystem.- Specified by:
addSubsystemVersionin interfaceTransformationTarget- Parameters:
subsystemName- the subsystem nameversion- the version
-
getTargetType
Description copied from interface:TransformationTargetGet the type of the target.- Specified by:
getTargetTypein interfaceTransformationTarget- Returns:
- the target type
-
getHostName
Description copied from interface:TransformationTargetGet the name of the host we are talking to- Specified by:
getHostNamein interfaceTransformationTarget
-
isIgnoredResourceListAvailableAtRegistration
public boolean isIgnoredResourceListAvailableAtRegistration()Description copied from interface:TransformationTargetGets whether this target can make its list of ignored resources known when it registers.- Specified by:
isIgnoredResourceListAvailableAtRegistrationin interfaceTransformationTarget- Returns:
trueif the target can provide the ignored resources list;falseif that is not supported.
-
isIgnoreUnaffectedConfig
public boolean isIgnoreUnaffectedConfig()- Specified by:
isIgnoreUnaffectedConfigin interfaceTransformationTarget
-