public interface Attachments
Modifier and Type | Interface and Description |
---|---|
static class |
Attachments.Key
A key for attachements
|
Modifier and Type | Method and Description |
---|---|
<T> T |
addAttachment(Class<T> clazz,
T value)
Add arbitrary attachment
|
Object |
addAttachment(String name,
Object value)
Add arbitrary attachment with name
|
<T> T |
addAttachment(String name,
T value,
Class<T> clazz)
Add arbitrary attachment with name
|
<T> T |
getAttachment(Class<T> clazz)
Get an arbitrary attachment
|
Object |
getAttachment(String name)
Get an arbitrary attachment
|
<T> T |
getAttachment(String name,
Class<T> clazz)
Get an arbitrary attachment
|
Collection<Attachments.Key> |
getAttachmentKeys()
Get attachment keys
|
<T> T |
removeAttachment(Class<T> clazz)
Remove arbitrary attachments
|
<T> T |
removeAttachment(Class<T> clazz,
String name)
Remove arbitrary attachments
|
Object |
removeAttachment(String name)
Remove arbitrary attachments
|
Collection<Attachments.Key> getAttachmentKeys()
<T> T addAttachment(Class<T> clazz, T value)
<T> T addAttachment(String name, T value, Class<T> clazz)
<T> T getAttachment(Class<T> clazz)
<T> T removeAttachment(Class<T> clazz)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.