|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.webbeans.el.ELContextStore
public class ELContextStore
The ELContextStore serves two different purposes
Dependent objects of the same
invocation. See spec section 6.4.3. Dependent pseudo-scope and Unified EL.
This gets cleaned up with destroyDependents() after the whole Expression
got scanned.
NormalScopedBeanInterceptorHandler
for each and every EL call is very expensive. This needs to be cleaned up with
destroyELContextStore() at the end of each request.
| Method Summary | |
|---|---|
void |
addDependent(javax.enterprise.inject.spi.Bean<?> bean,
Object dependent,
javax.enterprise.context.spi.CreationalContext<?> creationalContext)
Add a @Dependent scoped bean for later use in the same EL. |
void |
addNormalScoped(String beanName,
Object contextualInstance)
We cache resolved @NormalScoped bean proxies on the same for speeding up EL. |
void |
destroyDependents()
This method have to be called after the EL parsing to cleanup the cache for @Dependent scoped beans. |
void |
destroyELContextStore()
This needs to be called at the end of each request. |
Object |
findBeanByName(String name)
|
BeanManagerImpl |
getBeanManager()
|
Object |
getDependent(javax.enterprise.inject.spi.Bean<?> bean)
|
static ELContextStore |
getInstance(boolean createIfNotExist)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ELContextStore getInstance(boolean createIfNotExist)
createIfNotExist - if false doesn't create a new ELContextStore if none exists
public Object findBeanByName(String name)
public void addDependent(javax.enterprise.inject.spi.Bean<?> bean,
Object dependent,
javax.enterprise.context.spi.CreationalContext<?> creationalContext)
bean - dependent - creationalContext - public Object getDependent(javax.enterprise.inject.spi.Bean<?> bean)
bean -
nulladdDependent(Bean, Object, CreationalContext)
public void addNormalScoped(String beanName,
Object contextualInstance)
beanName - public BeanManagerImpl getBeanManager()
public void destroyDependents()
public void destroyELContextStore()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||