|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.deployers.structure.spi.helpers.TrackingMutableAttachments
public class TrackingMutableAttachments
TrackingMutableAttachments.
| Constructor Summary | |
|---|---|
TrackingMutableAttachments(MutableAttachments delegate)
Create a new TrackingMutableAttachments. |
|
| 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. |
|
|
getAttachment(Class<T> type)
Get attachment |
|
Object |
getAttachment(String name)
Get attachment |
|
|
getAttachment(String name,
Class<T> expectedType)
Get attachment |
|
Map<String,Object> |
getAttachments()
Get all the attachments |
|
int |
getChangeCount()
Get the number of changes that have happened. |
|
String |
getCreated(String name)
Get the deployer that created an attachment |
|
Set<String> |
getReferenced(String name)
Get the deployers that referenced an attachment |
|
boolean |
hasAttachments()
Are there any attachments |
|
boolean |
isAttachmentPresent(Class<?> type)
Is the attachment present |
|
boolean |
isAttachmentPresent(String name)
Is the attachment present |
|
boolean |
isAttachmentPresent(String name,
Class<?> expectedType)
Is the attachment present |
|
|
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 class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TrackingMutableAttachments(MutableAttachments delegate)
delegate - the delegate| Method Detail |
|---|
public String getCreated(String name)
name - the attachment name
public Set<String> getReferenced(String name)
name - the attachment name
public <T> T addAttachment(Class<T> type,
T attachment)
MutableAttachments
addAttachment in interface MutableAttachmentsT - the expected typetype - the typeattachment - the attachment
public Object addAttachment(String name,
Object attachment)
MutableAttachments
addAttachment in interface MutableAttachmentsname - the name of the attachmentattachment - the attachment
public <T> T addAttachment(String name,
T attachment,
Class<T> expectedType)
MutableAttachments
addAttachment in interface MutableAttachmentsT - the expected typename - the name of the attachmentattachment - the attachmentexpectedType - the expected type
public void clear()
MutableAttachments
clear in interface MutableAttachmentspublic void clearChangeCount()
MutableAttachments
clearChangeCount in interface MutableAttachmentspublic <T> T getAttachment(Class<T> type)
Attachments
getAttachment in interface AttachmentsT - the expected typetype - the type
public <T> T getAttachment(String name,
Class<T> expectedType)
Attachments
getAttachment in interface AttachmentsT - the expected typename - the name of the attachmentexpectedType - the expected type
public Object getAttachment(String name)
Attachments
getAttachment in interface Attachmentsname - the name of the attachment
public Map<String,Object> getAttachments()
Attachments
getAttachments in interface Attachmentspublic int getChangeCount()
MutableAttachments
getChangeCount in interface MutableAttachmentspublic boolean hasAttachments()
Attachments
hasAttachments in interface Attachmentspublic boolean isAttachmentPresent(Class<?> type)
Attachments
isAttachmentPresent in interface Attachmentstype - the type
public boolean isAttachmentPresent(String name,
Class<?> expectedType)
Attachments
isAttachmentPresent in interface Attachmentsname - the name of the attachmentexpectedType - the expected type
public boolean isAttachmentPresent(String name)
Attachments
isAttachmentPresent in interface Attachmentsname - the name of the attachment
public <T> T removeAttachment(Class<T> type)
MutableAttachments
removeAttachment in interface MutableAttachmentsT - the expected typetype - the type
public <T> T removeAttachment(String name,
Class<T> expectedType)
MutableAttachments
removeAttachment in interface MutableAttachmentsT - the expected typename - the name of the attachmentexpectedType - the expected type
public Object removeAttachment(String name)
MutableAttachments
removeAttachment in interface MutableAttachmentsname - the name of the attachment
public void setAttachments(Map<String,Object> map)
MutableAttachments
setAttachments in interface MutableAttachmentsmap - the new attachments a map of names to attachments
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||