org.apache.webbeans.intercept
Class NormalScopedBeanInterceptorHandler

java.lang.Object
  extended by org.apache.webbeans.intercept.InterceptorHandler
      extended by 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

Field Summary
 
Fields inherited from class org.apache.webbeans.intercept.InterceptorHandler
bean, interceptedMethodMap
 
Constructor Summary
NormalScopedBeanInterceptorHandler(OwbBean<?> bean, CreationalContext<?> creationalContext)
          Creates a new bean instance
 
Method Summary
protected  Object callAroundInvokes(Method proceed, Object[] arguments, List<InterceptorData> stack)
          Call around invoke method of the given bean on calling interceptedMethod.
protected  CreationalContext<Object> getContextualCreationalContext()
           
protected  Object getContextualInstance()
          Gets instance from context.
 Object invoke(Object instance, Method method, Method proceed, Object[] arguments)
          
 
Methods inherited from class org.apache.webbeans.intercept.InterceptorHandler
getBeanManager, invoke
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NormalScopedBeanInterceptorHandler

public NormalScopedBeanInterceptorHandler(OwbBean<?> bean,
                                          CreationalContext<?> creationalContext)
Creates a new bean instance

Parameters:
bean - bean
creationalContext - creational context
Method Detail

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 method
arguments - method actual arguments
stack - 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.