|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ScopeInstance
A particular instantiation of a Scope. Will be
used to store and retrieve components for that particular
Scope
For example, for the "request scope", an instance
of ScopeInstance is created for each request.
Scope.current()| Method Summary | ||
|---|---|---|
|
get(Provider<T> provider)
Retrieves a stored inhabitant if present in the storage bag. |
|
|
put(Provider<T> provider,
T value)
Stores a inhabitant component instance. |
|
void |
release()
release the backend storage and call PreDestroy.preDestroy()
on all instantiated components that implement the PreDestroy interface. |
|
| Method Detail |
|---|
<T> T get(Provider<T> provider)
T - the requested instance typeprovider - the Provider we request the instance for.
<T> T put(Provider<T> provider,
T value)
T - type of the componentprovider - component description as an Providervalue - component instance
void release()
PreDestroy.preDestroy()
on all instantiated components that implement the PreDestroy interface.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||