|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.reflect.plugins.TypeInfoAttachments
public class TypeInfoAttachments
TypeInfoAttachments. TODO add some security on who can add attachments
| Constructor Summary | |
|---|---|
TypeInfoAttachments()
|
|
| Method Summary | |
|---|---|
void |
addAttachment(String name,
Object attachment)
Set an attachment against the type. |
Object |
getAttachment(String name)
Get an attachment from the type |
void |
removeAttachment(String name)
Remove an attachment |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TypeInfoAttachments()
| Method Detail |
|---|
public void addAttachment(String name,
Object attachment)
If you add a future object, subsequent gets will wait for the result
WARNING: Be careful about what you put in here. Don't create references across classloaders, if you are not sure add a WeakReference to the information.
name - the nameattachment - the attachment, pass null to remove an attachment
IllegalArgumentException - for a null namepublic void removeAttachment(String name)
name - the name
IllegalArgumentException - for a null namepublic Object getAttachment(String name)
name - the name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||