public interface TransformationContext
Modifier and Type | Method and Description |
---|---|
<T> T |
attach(OperationContext.AttachmentKey<T> key,
T value)
Attaches an arbitrary object to this context.
|
<T> T |
attachIfAbsent(OperationContext.AttachmentKey<T> key,
T value)
Attaches an arbitrary object to this context only if the object was not already attached.
|
<T> T |
detach(OperationContext.AttachmentKey<T> key)
Detaches or removes the value from this context.
|
<T> T |
getAttachment(OperationContext.AttachmentKey<T> key)
Retrieves an object that has been attached to this context.
|
TransformersLogger |
getLogger()
Returns Transformers logger that must be used for reporting any problems with transformation
|
ProcessType |
getProcessType()
Get the type of process in which this operation is executing.
|
ImmutableManagementResourceRegistration |
getResourceRegistration(PathAddress address)
Get the management resource registration.
|
ImmutableManagementResourceRegistration |
getResourceRegistrationFromRoot(PathAddress address)
Get the management resource registration.
|
RunningMode |
getRunningMode()
Gets the running mode of the process.
|
TransformationTarget |
getTarget()
Get the transformation target.
|
Resource |
readResource(PathAddress address)
Read a model resource.
|
Resource |
readResourceFromRoot(PathAddress address)
Read a model resource from the root.
|
TransformationTarget getTarget()
ProcessType getProcessType()
null
RunningMode getRunningMode()
null
ImmutableManagementResourceRegistration getResourceRegistration(PathAddress address)
address
- the path addressImmutableManagementResourceRegistration getResourceRegistrationFromRoot(PathAddress address)
address
- the path addressResource readResource(PathAddress address)
address
- the path addressResource readResourceFromRoot(PathAddress address)
address
- the path addressTransformersLogger getLogger()
<T> T getAttachment(OperationContext.AttachmentKey<T> key)
T
- the value type of the attachment.key
- the key to the attachment.null
.<T> T attach(OperationContext.AttachmentKey<T> key, T value)
T
- the value type of the attachment.key
- they attachment key used to ensure uniqueness and used for retrieval of the value.value
- the value to store.null
if there was no previous value.<T> T attachIfAbsent(OperationContext.AttachmentKey<T> key, T value)
T
- the value type of the attachment.key
- they attachment key used to ensure uniqueness and used for retrieval of the value.value
- the value to store.null
if there was no previous value.<T> T detach(OperationContext.AttachmentKey<T> key)
T
- the value type of the attachment.key
- the key to the attachment.null
.Copyright © 2023 JBoss by Red Hat. All rights reserved.