public class ApplicationScopedBeanInterceptorHandler extends NormalScopedBeanInterceptorHandler
This is a Provider
especially
made for @ApplicationScoped beans.
Since there is only one single contextual instance of an @ApplicationScoped bean, we can simply cache this instance inside our bean. We only need to reload this instance if it is null. This happens at the first usage and after the MethodHandler got deserialized
bean
Constructor and Description |
---|
ApplicationScopedBeanInterceptorHandler(javax.enterprise.inject.spi.BeanManager beanManager,
javax.enterprise.inject.spi.Bean<?> bean) |
Modifier and Type | Method and Description |
---|---|
protected Object |
getContextualInstance() |
get, getBean, getBeanManager, readResolve
public ApplicationScopedBeanInterceptorHandler(javax.enterprise.inject.spi.BeanManager beanManager, javax.enterprise.inject.spi.Bean<?> bean)
protected Object getContextualInstance()
getContextualInstance
in class NormalScopedBeanInterceptorHandler
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.