|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Extensible
A general extendible artifact
| Method Summary | ||
|---|---|---|
|
addAttachment(Class<T> key,
Object value)
Add arbitrary attachments |
|
|
getAttachment(Class<T> key)
Get an arbitrary attachment |
|
|
getAttachments()
Get arbitrary attachments |
|
Set<String> |
getProperties()
Get the set of property names |
|
Object |
getProperty(String key)
Get an property |
|
|
removeAttachment(Class<T> key)
Remove arbitrary attachments |
|
void |
removeProperty(String key)
Remove a property |
|
void |
setProperties(Map<String,Object> props)
Set a map of properties |
|
void |
setProperty(String key,
Object value)
Set a property |
|
| Method Detail |
|---|
<T> T addAttachment(Class<T> key,
Object value)
<T> Collection<T> getAttachments()
<T> T getAttachment(Class<T> key)
<T> T removeAttachment(Class<T> key)
Object getProperty(String key)
void setProperty(String key,
Object value)
void removeProperty(String key)
Set<String> getProperties()
void setProperties(Map<String,Object> props)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||