public interface Transformers
Modifier and Type | Interface and Description |
---|---|
static class |
Transformers.Factory
Convenience factory for unit tests, and default internal implementations
|
static interface |
Transformers.OperationExcludedTransformationRegistry
Provides information on whether a target process is excluded from receiving operations for a particular resource addresses.
|
static interface |
Transformers.ResourceIgnoredTransformationRegistry
Provides information on whether a target process is ignoring particular resource addresses.
|
static class |
Transformers.TransformationInputs
Standard inputs into a transformation process.
|
Modifier and Type | Field and Description |
---|---|
static Transformers.ResourceIgnoredTransformationRegistry |
DEFAULT
A default
Transformers.ResourceIgnoredTransformationRegistry
that says that no addresses are being ignored. |
Modifier and Type | Method and Description |
---|---|
TransformationTarget |
getTarget()
Get information about the target.
|
OperationTransformer.TransformedOperation |
transformOperation(TransformationContext context,
org.jboss.dmr.ModelNode operation)
Only for use by test frameworks. Transforms an operation.
|
OperationTransformer.TransformedOperation |
transformOperation(Transformers.TransformationInputs transformationInputs,
org.jboss.dmr.ModelNode operation)
Transform an operation.
|
Resource |
transformResource(ResourceTransformationContext context,
Resource resource)
Only for use by test frameworks..
|
Resource |
transformRootResource(Transformers.TransformationInputs transformationInputs,
Resource resource)
Transform a given root resource, including children.
|
Resource |
transformRootResource(Transformers.TransformationInputs transformationInputs,
Resource resource,
Transformers.ResourceIgnoredTransformationRegistry ignoredTransformationRegistry)
Transform a given resource, including children, removing resources that the given
ignoredTransformationRegistry
indicates are being ignored by the target process. |
static final Transformers.ResourceIgnoredTransformationRegistry DEFAULT
Transformers.ResourceIgnoredTransformationRegistry
that says that no addresses are being ignored.TransformationTarget getTarget()
OperationTransformer.TransformedOperation transformOperation(TransformationContext context, org.jboss.dmr.ModelNode operation) throws OperationFailedException
context
- contextual information about the transformationoperation
- the operation to transformOperationFailedException
OperationTransformer.TransformedOperation transformOperation(Transformers.TransformationInputs transformationInputs, org.jboss.dmr.ModelNode operation) throws OperationFailedException
transformationInputs
- standard inputs into a transformation process. Cannot be null
operation
- the operation to transform. Cannot be null
null
OperationFailedException
Resource transformResource(ResourceTransformationContext context, Resource resource) throws OperationFailedException
context
- contextual information about the transformationresource
- to transformOperationFailedException
Resource transformRootResource(Transformers.TransformationInputs transformationInputs, Resource resource) throws OperationFailedException
resource
must represent the root of
HC's full resource tree but need not include all children, if the caller is not interested in transforming
the excluded children.transformationInputs
- standard inputs into a transformation process. Cannot be null
resource
- the root resource. Cannot be null
null
OperationFailedException
Resource transformRootResource(Transformers.TransformationInputs transformationInputs, Resource resource, Transformers.ResourceIgnoredTransformationRegistry ignoredTransformationRegistry) throws OperationFailedException
ignoredTransformationRegistry
indicates are being ignored by the target process. The given resource
must represent the root of
HC's full resource tree but need not include all children, if the caller is not interested in transforming
the excluded children.transformationInputs
- standard inputs to a transformation. Cannot be null
resource
- the resource to be transformed (including children)ignoredTransformationRegistry
- provider of information on what addresses are being ignored by the target processOperationFailedException
Copyright © 2023 JBoss by Red Hat. All rights reserved.