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)
Attachable
putAttachment
in interface Attachable
clazz
- key for the attachmentpublic <T> T getAttachment(AttachmentKey<T> clazz)
Attachable
getAttachment
in interface Attachable
clazz
- key for the attachmentpublic <T> T removeAttachment(AttachmentKey<T> clazz)
Attachable
removeAttachment
in interface Attachable
clazz
- key for the attachmentCopyright © 2013 JBoss by Red Hat. All rights reserved.