|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MutableAttachments
MutableAttachments.
Method Summary | ||
---|---|---|
|
addAttachment(Class<T> type,
T attachment)
Add attachment |
|
Object |
addAttachment(String name,
Object attachment)
Add attachment |
|
|
addAttachment(String name,
T attachment,
Class<T> expectedType)
Add attachment |
|
void |
clear()
Clear the attachments |
|
void |
clearChangeCount()
Reset the change count to zero. |
|
int |
getChangeCount()
Get the number of changes that have happened. |
|
|
removeAttachment(Class<T> type)
Remove attachment |
|
Object |
removeAttachment(String name)
Remove attachment |
|
|
removeAttachment(String name,
Class<T> expectedType)
Remove attachment |
|
void |
setAttachments(Map<String,Object> map)
Set the attachments |
Methods inherited from interface org.jboss.deployers.spi.attachments.Attachments |
---|
getAttachment, getAttachment, getAttachment, getAttachments, hasAttachments, isAttachmentPresent, isAttachmentPresent, isAttachmentPresent |
Method Detail |
---|
Object addAttachment(String name, Object attachment)
name
- the name of the attachmentattachment
- the attachment
IllegalArgumentException
- for a null name or attachment
UnsupportedOperationException
- when not supported by the implementation<T> T addAttachment(String name, T attachment, Class<T> expectedType)
T
- the expected typename
- the name of the attachmentattachment
- the attachmentexpectedType
- the expected type
IllegalArgumentException
- for a null name, attachment or expectedType
UnsupportedOperationException
- when not supported by the implementation<T> T addAttachment(Class<T> type, T attachment)
T
- the expected typeattachment
- the attachmenttype
- the type
IllegalArgumentException
- for a null name, attachment or type
UnsupportedOperationException
- when not supported by the implementationObject removeAttachment(String name)
name
- the name of the attachment
IllegalArgumentException
- for a null name
UnsupportedOperationException
- when not supported by the implementation<T> T removeAttachment(String name, Class<T> expectedType)
T
- the expected typename
- the name of the attachmentexpectedType
- the expected type
IllegalArgumentException
- for a null name or expectedType
UnsupportedOperationException
- when not supported by the implementation<T> T removeAttachment(Class<T> type)
T
- the expected typetype
- the type
IllegalArgumentException
- for a null name or typevoid setAttachments(Map<String,Object> map)
map
- the new attachments a map of names to attachments
IllegalArgumentException
- for a null mapvoid clear()
UnsupportedOperationException
- when not supported by the implementationint getChangeCount()
void clearChangeCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |