|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EZBExtensor
The EZBExtensor interface aims to provide a
way to add objects to instances, thus providing an extension mechanism.
| Method Summary | ||
|---|---|---|
|
addExtension(Class<T> clazz,
T extension)
Add a new extension under a given Class key. |
|
|
getExtension(Class<T> clazz)
Return an extension implementing the given class/interface. |
|
|
removeExtension(Class<T> clazz)
Remove the registered extension, if one was previously registered. |
|
| Method Detail |
|---|
<T> T addExtension(Class<T> clazz,
T extension)
Class key.
Previously registed extension (if there was one) is
replaced by the new one. The old extension is returned.
T - Extension type.clazz - Extenstion typeextension - the extension to add<T> T removeExtension(Class<T> clazz)
T - Extension typeclazz - Extension type to be removed (this is the key)
<T> T getExtension(Class<T> clazz)
T - Extension typeclazz - The key used to retrieve the extension.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||