public interface BeanStore extends Iterable<String>
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(String id)
Check if the store contains an instance
|
<T> org.jboss.weld.context.api.ContextualInstance<T> |
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.
|
<T> void |
put(String id,
org.jboss.weld.context.api.ContextualInstance<T> contextualInstance)
Adds a bean instance to the storage
|
<T> org.jboss.weld.context.api.ContextualInstance<T> |
remove(String id)
Removes a bean instance identified by the given id.
|
<T> org.jboss.weld.context.api.ContextualInstance<T> get(String id)
id
- The id of the contextual to returnboolean contains(String id)
id
- the id of the instance to check forvoid clear()
<T> void put(String id, org.jboss.weld.context.api.ContextualInstance<T> contextualInstance)
contextualInstance
- the contextual instanceLockedBean lock(String id)
id
- The bean id<T> org.jboss.weld.context.api.ContextualInstance<T> remove(String id)
id
- The bean idCopyright © 2013 Seam Framework. All Rights Reserved.