Class Transformers.TransformationInputs
- java.lang.Object
-
- org.jboss.as.controller.transform.Transformers.TransformationInputs
-
- Enclosing interface:
- Transformers
public static class Transformers.TransformationInputs extends Object
Standard inputs into a transformation process. These are derived from anOperationContextat 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
Constructors Constructor Description TransformationInputs(OperationContext context)Creates a newTransformationInputsfrom the given operation context.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Transformers.TransformationInputsgetOrCreate(OperationContext context)Obtains a set ofTransformationInputsfrom the given operation context.ProcessTypegetProcessType()Gets the type of this process.ImmutableManagementResourceRegistrationgetRootRegistration()Gets full theresource registrationtree.ResourcegetRootResource()Gets a copy of the full resource tree as it existed at the time this object was created.RunningModegetRunningMode()Gets the process' running mode at the time this object was created.TransformerOperationAttachmentgetTransformerOperationAttachment()Gets anyTransformerOperationAttachmentthat was attached to theOperationContextat the time this object was created.
-
-
-
Constructor Detail
-
TransformationInputs
public TransformationInputs(OperationContext context)
Creates a newTransformationInputsfrom the given operation context.- Parameters:
context- the operation context. Cannot benull
-
-
Method Detail
-
getOrCreate
public static Transformers.TransformationInputs getOrCreate(OperationContext context)
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
public Resource 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
public ImmutableManagementResourceRegistration getRootRegistration()
Gets full theresource registrationtree.- Returns:
- the resource registration tree. Will not be
null
-
getProcessType
public ProcessType getProcessType()
Gets the type of this process.- Returns:
- the process type. Will not be
null
-
getRunningMode
public RunningMode getRunningMode()
Gets the process' running mode at the time this object was created.- Returns:
- the running mode. Will not be
null
-
getTransformerOperationAttachment
public TransformerOperationAttachment getTransformerOperationAttachment()
Gets anyTransformerOperationAttachmentthat was attached to theOperationContextat the time this object was created.- Returns:
- the attachment, or
nullif there was none.
-
-