public interface BeanStore extends Iterable<org.jboss.weld.serialization.spi.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(org.jboss.weld.serialization.spi.BeanIdentifier id)
Check if the store contains an instance
|
<T> org.jboss.weld.context.api.ContextualInstance<T> |
get(org.jboss.weld.serialization.spi.BeanIdentifier id)
Gets an instance of a contextual from the store
|
Iterator<org.jboss.weld.serialization.spi.BeanIdentifier> |
iterator() |
LockedBean |
lock(org.jboss.weld.serialization.spi.BeanIdentifier id)
Gets a creation lock for the given bean id.
|
<T> void |
put(org.jboss.weld.serialization.spi.BeanIdentifier 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(org.jboss.weld.serialization.spi.BeanIdentifier id)
Removes a bean instance identified by the given id.
|
forEach, spliterator
<T> org.jboss.weld.context.api.ContextualInstance<T> get(org.jboss.weld.serialization.spi.BeanIdentifier id)
id
- The id of the contextual to returnboolean contains(org.jboss.weld.serialization.spi.BeanIdentifier id)
id
- the id of the instance to check forvoid clear()
Iterator<org.jboss.weld.serialization.spi.BeanIdentifier> iterator()
<T> void put(org.jboss.weld.serialization.spi.BeanIdentifier id, org.jboss.weld.context.api.ContextualInstance<T> contextualInstance)
contextualInstance
- the contextual instanceLockedBean lock(org.jboss.weld.serialization.spi.BeanIdentifier id)
id
- The bean id<T> org.jboss.weld.context.api.ContextualInstance<T> remove(org.jboss.weld.serialization.spi.BeanIdentifier id)
id
- The bean idCopyright © 2016. All rights reserved.