public class ContextualStoreImpl extends Object implements org.jboss.weld.serialization.spi.ContextualStore
ContextualStore
Constructor and Description |
---|
ContextualStoreImpl(String contextId,
BeanIdentifierIndex beanIdentifierIndex) |
Modifier and Type | Method and Description |
---|---|
void |
cleanup() |
<C extends javax.enterprise.context.spi.Contextual<I>,I> |
getContextual(org.jboss.weld.serialization.spi.BeanIdentifier identifier) |
<C extends javax.enterprise.context.spi.Contextual<I>,I> |
getContextual(String id)
Given a particular id, return the correct contextual.
|
<C extends javax.enterprise.context.spi.Contextual<I>,I> |
getSerializableContextual(javax.enterprise.context.spi.Contextual<I> contextual) |
<C extends javax.enterprise.context.spi.Contextual<I>,I> |
getSerializableContextualInstance(javax.enterprise.context.spi.Contextual<I> contextual,
I instance,
javax.enterprise.context.spi.CreationalContext<I> creationalContext) |
org.jboss.weld.serialization.spi.BeanIdentifier |
putIfAbsent(javax.enterprise.context.spi.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 javax.enterprise.context.spi.Contextual<I>,I> C getContextual(String id)
getContextual
in interface org.jboss.weld.serialization.spi.ContextualStore
id
- An identifier for the contextualpublic <C extends javax.enterprise.context.spi.Contextual<I>,I> C getContextual(org.jboss.weld.serialization.spi.BeanIdentifier identifier)
getContextual
in interface org.jboss.weld.serialization.spi.ContextualStore
public org.jboss.weld.serialization.spi.BeanIdentifier putIfAbsent(javax.enterprise.context.spi.Contextual<?> contextual)
putIfAbsent
in interface org.jboss.weld.serialization.spi.ContextualStore
contextual
- the contextual to addpublic <C extends javax.enterprise.context.spi.Contextual<I>,I> org.jboss.weld.serialization.spi.helpers.SerializableContextual<C,I> getSerializableContextual(javax.enterprise.context.spi.Contextual<I> contextual)
getSerializableContextual
in interface org.jboss.weld.serialization.spi.ContextualStore
public <C extends javax.enterprise.context.spi.Contextual<I>,I> org.jboss.weld.serialization.spi.helpers.SerializableContextualInstance<C,I> getSerializableContextualInstance(javax.enterprise.context.spi.Contextual<I> contextual, I instance, javax.enterprise.context.spi.CreationalContext<I> creationalContext)
getSerializableContextualInstance
in interface org.jboss.weld.serialization.spi.ContextualStore
public void cleanup()
cleanup
in interface org.jboss.weld.bootstrap.api.Service
Copyright © 2016. All rights reserved.