org.apache.webbeans.web.intercept
Class RequestScopedBeanInterceptorHandler
java.lang.Object
org.apache.webbeans.intercept.NormalScopedBeanInterceptorHandler
org.apache.webbeans.web.intercept.RequestScopedBeanInterceptorHandler
- All Implemented Interfaces:
- Serializable, Provider
public class RequestScopedBeanInterceptorHandler
- extends NormalScopedBeanInterceptorHandler
This is a Provider especially
made for @RequestScoped beans used in web applications.
Since there is only one single contextual instance of an @RequestScoped bean per thread,
we can simply cache this instance inside our bean. We only need to reload this instance
if it is null or if the thread ends.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RequestScopedBeanInterceptorHandler
public RequestScopedBeanInterceptorHandler(BeanManager beanManager,
Bean<?> bean)
- Creates a new handler.
removeThreadLocals
public static void removeThreadLocals()
getContextualInstance
protected Object getContextualInstance()
-
- Overrides:
getContextualInstance in class NormalScopedBeanInterceptorHandler
Copyright © 2008–2014 The Apache Software Foundation. All rights reserved.