public static class Transformers.TransformationInputs extends Object
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 and Description |
---|
TransformationInputs(OperationContext context)
Creates a new
TransformationInputs from the given operation context. |
Modifier and Type | Method and Description |
---|---|
static Transformers.TransformationInputs |
getOrCreate(OperationContext context)
Obtains a set of
TransformationInputs from the given operation context. |
ProcessType |
getProcessType()
Gets the type of this process.
|
ImmutableManagementResourceRegistration |
getRootRegistration()
Gets full the
resource 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 any
TransformerOperationAttachment that was attached to the OperationContext
at the time this object was created. |
public TransformationInputs(OperationContext context)
TransformationInputs
from the given operation context.context
- the operation context. Cannot be null
public static Transformers.TransformationInputs getOrCreate(OperationContext context)
TransformationInputs
from the given operation context. If the
context's current stage
is
OperationContext.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.context
- the operation context. Cannot be null
null
public Resource getRootResource()
null
public ImmutableManagementResourceRegistration getRootRegistration()
resource registration
tree.null
public ProcessType getProcessType()
null
public RunningMode getRunningMode()
null
public TransformerOperationAttachment getTransformerOperationAttachment()
TransformerOperationAttachment
that was attached to the OperationContext
at the time this object was created.null
if there was none.Copyright © 2023 JBoss by Red Hat. All rights reserved.