public class ContextAttachments extends Object
| Modifier and Type | Field and Description |
|---|---|
ConcurrentMap<OperationContext.AttachmentKey<?>,Object> |
valueAttachments
A concurrent map for the attachments.
|
| Constructor and Description |
|---|
ContextAttachments() |
| Modifier and Type | Method and Description |
|---|---|
<V> V |
attach(OperationContext.AttachmentKey<V> key,
V value) |
<V> V |
attachIfAbsent(OperationContext.AttachmentKey<V> key,
V value) |
<V> V |
detach(OperationContext.AttachmentKey<V> key) |
<V> V |
getAttachment(OperationContext.AttachmentKey<V> key) |
public final ConcurrentMap<OperationContext.AttachmentKey<?>,Object> valueAttachments
public <V> V getAttachment(OperationContext.AttachmentKey<V> key)
public <V> V attach(OperationContext.AttachmentKey<V> key, V value)
public <V> V attachIfAbsent(OperationContext.AttachmentKey<V> key, V value)
public <V> V detach(OperationContext.AttachmentKey<V> key)
Copyright © 2015 JBoss by Red Hat. All rights reserved.