public class NormalScopedBeanInterceptorHandler extends Object implements Provider, Serializable
A Provider which handles all NormalScoped proxying. It's two main responsibilities are to provide the one active Contextual Instance, the second is to provide serialisation.
The generated proxy will writeReplace() with this class and any
NormalScopedBean provider must readResolve() and regenerate the
proxy class from the NormalScopeProxyFactory
again.
Any subclass should either declare all their fields transient
or handle the serialisation properly!
| Constructor and Description |
|---|
NormalScopedBeanInterceptorHandler(BeanManager beanManager,
Bean<?> bean) |
| Modifier and Type | Method and Description |
|---|---|
Object |
get() |
Bean<?> |
getBean() |
protected BeanManager |
getBeanManager() |
protected Object |
getContextualInstance() |
protected Object |
readResolve()
The following code gets generated into the proxy:
Object writeReplace() throws ObjectStreamException
{
return provider;
}
|
protected transient Bean<?> bean
public NormalScopedBeanInterceptorHandler(BeanManager beanManager, Bean<?> bean)
public Bean<?> getBean()
protected BeanManager getBeanManager()
protected Object getContextualInstance()
protected Object readResolve() throws ObjectStreamException
Object writeReplace() throws ObjectStreamException
{
return provider;
}
ObjectStreamExceptionCopyright © 2008–2014 The Apache Software Foundation. All rights reserved.