public class NormalScopedBeanInterceptorHandler extends InterceptorHandler
bean, interceptedMethodMap, webBeansContext| Constructor and Description |
|---|
NormalScopedBeanInterceptorHandler(OwbBean<?> bean,
javax.enterprise.context.spi.CreationalContext<?> creationalContext)
Creates a new bean instance
|
| Modifier and Type | Method and Description |
|---|---|
protected Object |
callAroundInvokes(Method proceed,
Object[] arguments,
List<InterceptorData> stack)
Call around invoke method of the given bean on
calling interceptedMethod.
|
protected javax.enterprise.context.spi.CreationalContext<Object> |
getContextualCreationalContext() |
protected Object |
getContextualInstance()
Gets instance from context.
|
Object |
invoke(Object instance,
Method method,
Method proceed,
Object[] arguments) |
Object |
invoke(Object instance,
Method method,
Object[] arguments) |
protected boolean |
isNotInterceptedOrDecoratedMethod(Method method)
This method provides a way to implement a negative cache for methods
which are known to become intercepted or decorated.
|
protected void |
setNotInterceptedOrDecoratedMethod(Method method)
This method will get called after the interceptorStack got evaluated and we
found out that it isnt intercepted nor decorated.
|
getBeanManager, invoke, invokepublic NormalScopedBeanInterceptorHandler(OwbBean<?> bean, javax.enterprise.context.spi.CreationalContext<?> creationalContext)
bean - beancreationalContext - creational contextprotected boolean isNotInterceptedOrDecoratedMethod(Method method)
InterceptorHandlerisNotInterceptedOrDecoratedMethod in class InterceptorHandlermethod - which should get invokedtrue if the method is known to not get intercepted,
false we dont know or it gets interceptedInterceptorHandler.setNotInterceptedOrDecoratedMethod(java.lang.reflect.Method)protected void setNotInterceptedOrDecoratedMethod(Method method)
InterceptorHandlerpublic Object invoke(Object instance, Method method, Method proceed, Object[] arguments) throws Throwable
Throwablepublic Object invoke(Object instance, Method method, Object[] arguments) throws Throwable
Throwableprotected Object callAroundInvokes(Method proceed, Object[] arguments, List<InterceptorData> stack) throws Exception
callAroundInvokes in class InterceptorHandlerproceed - intercepted bean methodarguments - method actual argumentsstack - interceptor stackException - for any exceptionprotected Object getContextualInstance()
protected javax.enterprise.context.spi.CreationalContext<Object> getContextualCreationalContext()
Copyright © 2008-2013 The Apache Software Foundation. All Rights Reserved.