public interface BeanStore extends Iterable<BeanIdentifier>
Map like store of contextual instances, used to back the Weld built
in contexts.| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the store of contextual instances
|
boolean |
contains(BeanIdentifier id)
Check if the store contains an instance
|
<T> ContextualInstance<T> |
get(BeanIdentifier id)
Gets an instance of a contextual from the store
|
Iterator<BeanIdentifier> |
iterator() |
LockedBean |
lock(BeanIdentifier id)
Gets a creation lock for the given bean id.
|
<T> void |
put(BeanIdentifier id,
ContextualInstance<T> contextualInstance)
Adds a bean instance to the storage
|
<T> ContextualInstance<T> |
remove(BeanIdentifier id)
Removes a bean instance identified by the given id.
|
<T> ContextualInstance<T> get(BeanIdentifier id)
id - The id of the contextual to returnboolean contains(BeanIdentifier id)
id - the id of the instance to check forvoid clear()
Iterator<BeanIdentifier> iterator()
iterator in interface Iterable<BeanIdentifier><T> void put(BeanIdentifier id, ContextualInstance<T> contextualInstance)
contextualInstance - the contextual instanceLockedBean lock(BeanIdentifier id)
id - The bean id<T> ContextualInstance<T> remove(BeanIdentifier id)
id - The bean idCopyright © 2013 Seam Framework. All Rights Reserved.