org.apache.webbeans.intercept
Class NormalScopedBeanInterceptorHandler
java.lang.Object
org.apache.webbeans.intercept.InterceptorHandler
org.apache.webbeans.intercept.NormalScopedBeanInterceptorHandler
- All Implemented Interfaces:
- Serializable, javassist.util.proxy.MethodHandler
- Direct Known Subclasses:
- ApplicationScopedBeanIntereptorHandler
public class NormalScopedBeanInterceptorHandler
- extends InterceptorHandler
Normal scoped beans interceptor handler.
- Version:
- $Rev: 966923 $ $Date: 2010-07-23 03:14:02 +0200 (Fr, 23 Jul 2010) $
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NormalScopedBeanInterceptorHandler
public NormalScopedBeanInterceptorHandler(OwbBean<?> bean,
CreationalContext<?> creationalContext)
- Creates a new bean instance
- Parameters:
bean - beancreationalContext - creational context
invoke
public Object invoke(Object instance,
Method method,
Method proceed,
Object[] arguments)
throws Exception
-
- Throws:
Exception
callAroundInvokes
protected Object callAroundInvokes(Method proceed,
Object[] arguments,
List<InterceptorData> stack)
throws Exception
- Call around invoke method of the given bean on
calling interceptedMethod.
- Specified by:
callAroundInvokes in class InterceptorHandler
- Parameters:
proceed - intercepted bean methodarguments - method actual argumentsstack - interceptor stack
- Returns:
- return of method
- Throws:
Exception - for any exception
getContextualInstance
protected Object getContextualInstance()
- Gets instance from context.
- Returns:
- the underlying contextual instance, either cached or resolved from the context
getContextualCreationalContext
protected CreationalContext<Object> getContextualCreationalContext()
Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.