|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.osgi.spi.util.AttachmentSupport
public abstract class AttachmentSupport
Basic attachment support.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.jboss.osgi.spi.Attachments |
|---|
Attachments.Key |
| Constructor Summary | |
|---|---|
AttachmentSupport()
Construct with no attachments |
|
AttachmentSupport(AttachmentSupport att)
Construct with given attachments |
|
| Method Summary | ||
|---|---|---|
|
addAttachment(Class<T> clazz,
T obj)
Add arbitrary attachment |
|
Object |
addAttachment(String name,
Object obj)
Add arbitrary attachment with name |
|
|
addAttachment(String name,
T obj,
Class<T> clazz)
Add arbitrary attachment with name |
|
|
getAttachment(Class<T> clazz)
Get an arbitrary attachment |
|
Object |
getAttachment(String name)
Get an arbitrary attachment |
|
|
getAttachment(String name,
Class<T> clazz)
Get an arbitrary attachment |
|
Collection<Attachments.Key> |
getAttachmentKeys()
Get attachment keys |
|
|
removeAttachment(Class<T> clazz)
Remove arbitrary attachments |
|
|
removeAttachment(Class<T> clazz,
String name)
Remove arbitrary attachments |
|
Object |
removeAttachment(String name)
Remove arbitrary attachments |
|
String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AttachmentSupport()
public AttachmentSupport(AttachmentSupport att)
| Method Detail |
|---|
public Collection<Attachments.Key> getAttachmentKeys()
Attachments
getAttachmentKeys in interface Attachmentspublic <T> T getAttachment(Class<T> clazz)
Attachments
getAttachment in interface Attachments
public <T> T getAttachment(String name,
Class<T> clazz)
Attachments
getAttachment in interface Attachmentspublic Object getAttachment(String name)
Attachments
getAttachment in interface Attachments
public <T> T addAttachment(Class<T> clazz,
T obj)
Attachments
addAttachment in interface Attachments
public <T> T addAttachment(String name,
T obj,
Class<T> clazz)
Attachments
addAttachment in interface Attachments
public Object addAttachment(String name,
Object obj)
Attachments
addAttachment in interface Attachmentspublic <T> T removeAttachment(Class<T> clazz)
Attachments
removeAttachment in interface Attachments
public <T> T removeAttachment(Class<T> clazz,
String name)
Attachments
removeAttachment in interface Attachmentspublic Object removeAttachment(String name)
Attachments
removeAttachment in interface Attachmentspublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||