public class ContextualStorage extends Object implements Serializable
| Constructor and Description |
|---|
ContextualStorage(jakarta.enterprise.inject.spi.BeanManager beanManager,
boolean concurrent,
boolean passivationCapable) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
createContextualInstance(jakarta.enterprise.context.spi.Contextual<T> bean,
jakarta.enterprise.context.spi.CreationalContext<T> creationalContext) |
jakarta.enterprise.context.spi.Contextual<?> |
getBean(Object beanKey)
Restores the Bean from its beanKey.
|
<T> Object |
getBeanKey(jakarta.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(jakarta.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(jakarta.enterprise.context.spi.Contextual<T> bean,
jakarta.enterprise.context.spi.CreationalContext<T> creationalContext)
T - bean - creationalContext - public <T> Object getBeanKey(jakarta.enterprise.context.spi.Contextual<T> bean)
public jakarta.enterprise.context.spi.Contextual<?> getBean(Object beanKey)
Copyright © 2022 The Apache Software Foundation. All rights reserved.