|
||||||||||
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
org.jboss.deployers.plugins.attachments.AttachmentsImpl
public class AttachmentsImpl
Attachments implementation
Constructor Summary | |
---|---|
AttachmentsImpl()
|
Method Summary | |
---|---|
Object |
addAttachment(String name,
Object attachment)
Add attachment |
void |
clear()
Clear the attachments |
void |
clearChangeCount()
Reset the change count to zero. |
Object |
getAttachment(String name)
Get attachment |
Map<String,Object> |
getAttachments()
Get all the attachments |
int |
getChangeCount()
Get the number of changes that have happened. |
boolean |
hasAttachments()
Are there any attachments |
boolean |
isAttachmentPresent(String name)
Is the attachment present |
void |
readExternal(ObjectInput in)
|
Object |
removeAttachment(String name)
Remove attachment |
void |
setAttachments(Map<String,Object> map)
Set the attachments |
String |
toString()
|
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class org.jboss.deployers.spi.attachments.helpers.AbstractMutableAttachments |
---|
addAttachment, addAttachment, removeAttachment, removeAttachment |
Methods inherited from class org.jboss.deployers.spi.attachments.helpers.AbstractAttachments |
---|
getAttachment, getAttachment, isAttachmentPresent, isAttachmentPresent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jboss.deployers.spi.attachments.Attachments |
---|
getAttachment, getAttachment, isAttachmentPresent, isAttachmentPresent |
Constructor Detail |
---|
public AttachmentsImpl()
Method Detail |
---|
public Map<String,Object> getAttachments()
Attachments
public void setAttachments(Map<String,Object> map)
MutableAttachments
setAttachments
in interface MutableAttachments
setAttachments
in class AbstractMutableAttachments
map
- the new attachments a map of names to attachmentspublic Object addAttachment(String name, Object attachment)
MutableAttachments
name
- the name of the attachmentattachment
- the attachment
public Object getAttachment(String name)
Attachments
name
- the name of the attachment
public boolean isAttachmentPresent(String name)
Attachments
name
- the name of the attachment
public Object removeAttachment(String name)
MutableAttachments
name
- the name of the attachment
public void clear()
MutableAttachments
public boolean hasAttachments()
Attachments
public int getChangeCount()
MutableAttachments
public void clearChangeCount()
MutableAttachments
public String toString()
toString
in class Object
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class AbstractAttachments
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class AbstractAttachments
out
- the output
IOException
- for any error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |