|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContextualStore
Application wide contextual identifier service which allows a serializable reference to a contextual to be obtained, and the contextual to be returned for a given id.
If the contextual implements PassivationCapable, the id will be obtained from it, in which case the Contextual can be activated in any container. If not, the Contextual can only be activated in this container. Note that this allows a Bean object to be loaded regardless of the bean's accessiblity from the current module, and should not be abused as a way to ignore accessibility rules enforced during resolution.
Method Summary | ||
---|---|---|
|
getContextual(String id)
Given a particular id, return the correct contextual. |
|
|
getSerializableContextual(javax.enterprise.context.spi.Contextual<I> contextual)
Returns a SerializableContextual that corresponds to the given Contextual |
|
|
getSerializableContextualInstance(javax.enterprise.context.spi.Contextual<I> contextual,
I instance,
javax.enterprise.context.spi.CreationalContext<I> creationalContext)
Returns a SerializableContextualInstance that corresponds to the given instance and Contextual |
|
String |
putIfAbsent(javax.enterprise.context.spi.Contextual<?> contextual)
Add a contextual (if not already present) to the store, and return it's id. |
Methods inherited from interface org.jboss.weld.bootstrap.api.Service |
---|
cleanup |
Method Detail |
---|
<C extends javax.enterprise.context.spi.Contextual<I>,I> C getContextual(String id)
id
- An identifier for the contextual
String putIfAbsent(javax.enterprise.context.spi.Contextual<?> contextual)
contextual
- the contexutal to add
<C extends javax.enterprise.context.spi.Contextual<I>,I> SerializableContextual<C,I> getSerializableContextual(javax.enterprise.context.spi.Contextual<I> contextual)
SerializableContextual
that corresponds to the given Contextual
contextual
- the contextual for which the serializable contextual is created
<C extends javax.enterprise.context.spi.Contextual<I>,I> SerializableContextualInstance<C,I> getSerializableContextualInstance(javax.enterprise.context.spi.Contextual<I> contextual, I instance, javax.enterprise.context.spi.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 instance
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |