|
JBoss Managed Parent POM 2.1.1.SP2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TransientAttachments
A common interface for managed elements that support transient attachments
Method Summary | ||
---|---|---|
|
getTransientAttachment(Class<T> expectedType)
Get an attachment from the parameter, uses the expected type as both the name and to cast the resulting object. |
|
Object |
getTransientAttachment(String name)
Get a transient attachment from the parameter. |
|
void |
setTransientAttachment(String name,
Object attachment)
Set an transient attachment against the parameter. |
Method Detail |
---|
Object getTransientAttachment(String name)
name
- the name
setTransientAttachment(String, Object)
<T> T getTransientAttachment(Class<T> expectedType)
T
- the expected typeexpectedType
- the expected type
ClassCastException
- when the object is not of the expected typevoid setTransientAttachment(String name, Object attachment)
name
- the nameattachment
- the attachment, pass null to remove an attachment
IllegalArgumentException
- for a null name
|
JBoss Managed Parent POM 2.1.1.SP2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |