public interface ContextualStore extends Service
Modifier and Type | Method and Description |
---|---|
<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.
|
<C extends Contextual<I>,I> C getContextual(String id)
id
- An identifier for the contextual<C extends Contextual<I>,I> C getContextual(BeanIdentifier identifier)
BeanIdentifier putIfAbsent(Contextual<?> contextual)
contextual
- the contexutal to add<C extends Contextual<I>,I> SerializableContextual<C,I> getSerializableContextual(Contextual<I> contextual)
SerializableContextual
that corresponds to the given Contextual
contextual
- the contextual for which the serializable contextual is created<C extends Contextual<I>,I> SerializableContextualInstance<C,I> getSerializableContextualInstance(Contextual<I> contextual, I instance, CreationalContext<I> creationalContext)
SerializableContextualInstance
that corresponds to the given
instance and Contextual
contextual
- the contextual for which the serializable contextual instance is returnedinstance
- the instancecreationalContext
- the creational context of the instanceCopyright © 2014. All Rights Reserved.