|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- the kind of object that is sharedpublic interface SharedExtension<T>
A SharedExtension
is a set of extensions shared by many clients. Basically it is used for
optimization, as it allows to reuse objects. Clients should call bind()
before, and
unbind()
after using a SharedExtension
object.
Method Summary | |
---|---|
void |
bind()
Needs to be called by clients to make sure that get() actually returns something. |
List<T> |
get()
Gets the list of shared objects. |
ExtensionName<T> |
getName()
Gets the name of the extension whose objects are shared. |
void |
unbind()
Can be called by clients to release no longer needed resources. |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Method Detail |
---|
void bind()
get()
actually returns something.
void unbind()
ExtensionName<T> getName()
null
List<T> get()
null
, is not modifiable
IllegalStateException
- if this SharedExtension
is not bound
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |