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 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 Details

    • TransformationInputs

      public TransformationInputs(OperationContext context)
      Creates a new TransformationInputs from the given operation context.
      Parameters:
      context - the operation context. Cannot be null
  • Method Details

    • getOrCreate

      public static Transformers.TransformationInputs getOrCreate(OperationContext context)
      Obtains a set of 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.
      Parameters:
      context - the operation context. Cannot be null
      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 the resource 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 any TransformerOperationAttachment that was attached to the OperationContext at the time this object was created.
      Returns:
      the attachment, or null if there was none.