public class AttachableSupport extends Object implements Attachable
Attachable.| Constructor and Description |
|---|
AttachableSupport() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getAttachment(AttachmentKey<T> clazz)
Get the attached object for a given key
|
<T> T |
putAttachment(AttachmentKey<T> clazz,
T value)
Attach an arbirtary object with this element.
|
<T> T |
removeAttachment(AttachmentKey<T> clazz)
Remove an attached object for a given key
|
public <T> T putAttachment(AttachmentKey<T> clazz, T value)
AttachableputAttachment in interface Attachableclazz - key for the attachmentpublic <T> T getAttachment(AttachmentKey<T> clazz)
AttachablegetAttachment in interface Attachableclazz - key for the attachmentpublic <T> T removeAttachment(AttachmentKey<T> clazz)
AttachableremoveAttachment in interface Attachableclazz - key for the attachmentCopyright © 2016 JBoss by Red Hat. All rights reserved.