Class Transformers.TransformationInputs
java.lang.Object
org.jboss.as.controller.transform.Transformers.TransformationInputs
- Enclosing interface:
- Transformers
Standard inputs into a transformation process. These are derived from an
OperationContext
at the time they are created but this class does not use the operation context thereafter, making
it safe for use by other threads not associated with the operation context.-
Constructor Summary
ConstructorsConstructorDescriptionTransformationInputs(OperationContext context) Creates a newTransformationInputsfrom the given operation context. -
Method Summary
Modifier and TypeMethodDescriptiongetOrCreate(OperationContext context) Obtains a set ofTransformationInputsfrom the given operation context.Gets the type of this process.Gets full theresource registrationtree.Gets a copy of the full resource tree as it existed at the time this object was created.Gets the process' running mode at the time this object was created.Gets anyTransformerOperationAttachmentthat was attached to theOperationContextat the time this object was created.
-
Constructor Details
-
TransformationInputs
Creates a newTransformationInputsfrom the given operation context.- Parameters:
context- the operation context. Cannot benull
-
-
Method Details
-
getOrCreate
Obtains a set ofTransformationInputsfrom the given operation context. If the context'scurrent stageisOperationContext.Stage.DOMAINany inputs cached with the context as an attachment will be used, and if none are cached, then the created inputs will be cached.- Parameters:
context- the operation context. Cannot benull- Returns:
- the inputs. Will not be
null
-
getRootResource
Gets a copy of the full resource tree as it existed at the time this object was created.- Returns:
- the resource tree. Will not be
null
-
getRootRegistration
Gets full theresource registrationtree.- Returns:
- the resource registration tree. Will not be
null
-
getProcessType
Gets the type of this process.- Returns:
- the process type. Will not be
null
-
getRunningMode
Gets the process' running mode at the time this object was created.- Returns:
- the running mode. Will not be
null
-
getTransformerOperationAttachment
Gets anyTransformerOperationAttachmentthat was attached to theOperationContextat the time this object was created.- Returns:
- the attachment, or
nullif there was none.
-