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 anOperationContext
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
Constructors Constructor Description TransformationInputs(OperationContext context)
Creates a newTransformationInputs
from the given operation context.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Transformers.TransformationInputs
getOrCreate(OperationContext context)
Obtains a set ofTransformationInputs
from the given operation context.ProcessType
getProcessType()
Gets the type of this process.ImmutableManagementResourceRegistration
getRootRegistration()
Gets full theresource registration
tree.Resource
getRootResource()
Gets a copy of the full resource tree as it existed at the time this object was created.RunningMode
getRunningMode()
Gets the process' running mode at the time this object was created.TransformerOperationAttachment
getTransformerOperationAttachment()
Gets anyTransformerOperationAttachment
that was attached to theOperationContext
at the time this object was created.
-
-
-
Constructor Detail
-
TransformationInputs
public TransformationInputs(OperationContext context)
Creates a newTransformationInputs
from the given operation context.- Parameters:
context
- the operation context. Cannot benull
-
-
Method Detail
-
getOrCreate
public static Transformers.TransformationInputs getOrCreate(OperationContext context)
Obtains a set ofTransformationInputs
from the given operation context. If the context'scurrent stage
isOperationContext.Stage.DOMAIN
any 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 registration
tree.- 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 anyTransformerOperationAttachment
that was attached to theOperationContext
at the time this object was created.- Returns:
- the attachment, or
null
if there was none.
-
-