public class ContextualStorage extends Object implements Serializable
| Constructor and Description | 
|---|
| ContextualStorage(javax.enterprise.inject.spi.BeanManager beanManager,
                 boolean concurrent,
                 boolean passivationCapable) | 
| Modifier and Type | Method and Description | 
|---|---|
| <T> T | createContextualInstance(javax.enterprise.context.spi.Contextual<T> bean,
                        javax.enterprise.context.spi.CreationalContext<T> creationalContext) | 
| javax.enterprise.context.spi.Contextual<?> | getBean(Object beanKey)Restores the Bean from its beanKey. | 
| <T> Object | getBeanKey(javax.enterprise.context.spi.Contextual<T> bean)If the context is a passivating scope then we return
 the passivationId of the Bean. | 
| Map<Object,ContextualInstanceInfo<?>> | getStorage() | 
| boolean | isConcurrent() | 
public ContextualStorage(javax.enterprise.inject.spi.BeanManager beanManager,
                         boolean concurrent,
                         boolean passivationCapable)
beanManager - is needed for serialisationconcurrent - whether the ContextualStorage might get accessed concurrently by different threadspassivationCapable - whether the storage is for passivation capable Scopespublic Map<Object,ContextualInstanceInfo<?>> getStorage()
public boolean isConcurrent()
public <T> T createContextualInstance(javax.enterprise.context.spi.Contextual<T> bean,
                                      javax.enterprise.context.spi.CreationalContext<T> creationalContext)
T - bean - creationalContext - public <T> Object getBeanKey(javax.enterprise.context.spi.Contextual<T> bean)
public javax.enterprise.context.spi.Contextual<?> getBean(Object beanKey)
Copyright © 2025 The Apache Software Foundation. All rights reserved.