public class ContextualStoreImpl extends Object implements ContextualStore
ContextualStore| Constructor and Description |
|---|
ContextualStoreImpl(String contextId,
BeanIdentifierIndex beanIdentifierIndex) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
Called by Weld when it is shutting down, allowing the service to perform any cleanup needed.
|
<C extends Contextual<I>,I> |
getContextual(BeanIdentifier identifier) |
<C extends Contextual<I>,I> |
getContextual(String id)
Given a particular id, return the correct contextual.
|
<C extends Contextual<I>,I> |
getSerializableContextual(Contextual<I> contextual)
Returns a
SerializableContextual that corresponds to the given Contextual |
<C extends Contextual<I>,I> |
getSerializableContextualInstance(Contextual<I> contextual,
I instance,
CreationalContext<I> creationalContext)
Returns a
SerializableContextualInstance that corresponds to the given
instance and Contextual |
BeanIdentifier |
putIfAbsent(Contextual<?> contextual)
Add a contextual (if not already present) to the store, and return it's
id.
|
public ContextualStoreImpl(String contextId, BeanIdentifierIndex beanIdentifierIndex)
public <C extends Contextual<I>,I> C getContextual(String id)
getContextual in interface ContextualStoreC - the contextualI - the type of the contextualid - An identifier for the contextualpublic <C extends Contextual<I>,I> C getContextual(BeanIdentifier identifier)
getContextual in interface ContextualStorepublic BeanIdentifier putIfAbsent(Contextual<?> contextual)
putIfAbsent in interface ContextualStorecontextual - the contextual to addpublic <C extends Contextual<I>,I> SerializableContextual<C,I> getSerializableContextual(Contextual<I> contextual)
ContextualStoreSerializableContextual that corresponds to the given ContextualgetSerializableContextual in interface ContextualStoreC - the contextualI - the type of the contextualcontextual - the contextual for which the serializable contextual is createdpublic <C extends Contextual<I>,I> SerializableContextualInstance<C,I> getSerializableContextualInstance(Contextual<I> contextual, I instance, CreationalContext<I> creationalContext)
ContextualStoreSerializableContextualInstance that corresponds to the given
instance and ContextualgetSerializableContextualInstance in interface ContextualStoreC - the contextualI - the type of the contextualcontextual - the contextual for which the serializable contextual instance is returnedinstance - the instancecreationalContext - the creational context of the instanceCopyright © 2015. All Rights Reserved.