|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BeanStore
A Map
like store of contextual instances, used to back the Weld built
in contexts.
Method Summary | ||
---|---|---|
void |
clear()
Clears the store of contextual instances |
|
boolean |
contains(String id)
Check if the store contains an instance |
|
|
get(String id)
Gets an instance of a contextual from the store |
|
Iterator<String> |
iterator()
|
|
LockedBean |
lock(String id)
Gets a creation lock for the given bean id. |
|
|
put(String id,
org.jboss.weld.context.api.ContextualInstance<T> contextualInstance)
Adds a bean instance to the storage |
Method Detail |
---|
<T> org.jboss.weld.context.api.ContextualInstance<T> get(String id)
id
- The id of the contextual to return
boolean contains(String id)
id
- the id of the instance to check for
void clear()
Iterator<String> iterator()
iterator
in interface Iterable<String>
<T> void put(String id, org.jboss.weld.context.api.ContextualInstance<T> contextualInstance)
contextualInstance
- the contextual instanceLockedBean lock(String id)
id
- The bean id
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |