Class ContextAttachments
- java.lang.Object
-
- org.jboss.as.controller.transform.ContextAttachments
-
- All Implemented Interfaces:
AutoCloseable
public class ContextAttachments extends Object implements AutoCloseable
Internal class for providing attachments. Although it is in the .transform package, this is more to avoid polluting the parent package.- Author:
- Kabir Khan
-
-
Constructor Summary
Constructors Constructor Description ContextAttachments()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <V> V
attach(OperationContext.AttachmentKey<V> key, V value)
<V> V
attachIfAbsent(OperationContext.AttachmentKey<V> key, V value)
void
close()
<V> V
detach(OperationContext.AttachmentKey<V> key)
<V> V
getAttachment(OperationContext.AttachmentKey<V> key)
-
-
-
Method Detail
-
getAttachment
public <V> V getAttachment(OperationContext.AttachmentKey<V> key)
-
attach
public <V> V attach(OperationContext.AttachmentKey<V> key, V value)
-
attachIfAbsent
public <V> V attachIfAbsent(OperationContext.AttachmentKey<V> key, V value)
-
detach
public <V> V detach(OperationContext.AttachmentKey<V> key)
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
-
-