|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.deployers.spi.attachments.helpers.AbstractAttachments
org.jboss.deployers.spi.attachments.helpers.AbstractMutableAttachments
public abstract class AbstractMutableAttachments
AbstractMutableAttachments.
Constructor Summary | |
---|---|
AbstractMutableAttachments()
|
Method Summary | ||
---|---|---|
|
addAttachment(Class<T> type,
T attachment)
Add attachment |
|
|
addAttachment(String name,
T attachment,
Class<T> expectedType)
Add attachment |
|
|
removeAttachment(Class<T> type)
Remove attachment |
|
|
removeAttachment(String name,
Class<T> expectedType)
Remove attachment |
|
void |
setAttachments(Map<String,Object> map)
Set the attachments |
Methods inherited from class org.jboss.deployers.spi.attachments.helpers.AbstractAttachments |
---|
getAttachment, getAttachment, isAttachmentPresent, isAttachmentPresent, readExternal, writeExternal |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.deployers.spi.attachments.MutableAttachments |
---|
addAttachment, clear, clearChangeCount, getChangeCount, removeAttachment |
Methods inherited from interface org.jboss.deployers.spi.attachments.Attachments |
---|
getAttachment, getAttachment, getAttachment, getAttachments, hasAttachments, isAttachmentPresent, isAttachmentPresent, isAttachmentPresent |
Constructor Detail |
---|
public AbstractMutableAttachments()
Method Detail |
---|
public <T> T addAttachment(String name, T attachment, Class<T> expectedType)
MutableAttachments
addAttachment
in interface MutableAttachments
T
- the expected typename
- the name of the attachmentattachment
- the attachmentexpectedType
- the expected type
public void setAttachments(Map<String,Object> map)
MutableAttachments
setAttachments
in interface MutableAttachments
map
- the new attachments a map of names to attachmentspublic <T> T addAttachment(Class<T> type, T attachment)
MutableAttachments
addAttachment
in interface MutableAttachments
T
- the expected typetype
- the typeattachment
- the attachment
public <T> T removeAttachment(String name, Class<T> expectedType)
MutableAttachments
removeAttachment
in interface MutableAttachments
T
- the expected typename
- the name of the attachmentexpectedType
- the expected type
public <T> T removeAttachment(Class<T> type)
MutableAttachments
removeAttachment
in interface MutableAttachments
T
- the expected typetype
- the type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |