org.apache.webbeans.intercept
Class DependentScopedBeanInterceptorHandler

java.lang.Object
  extended by org.apache.webbeans.intercept.InterceptorHandler
      extended by org.apache.webbeans.intercept.DependentScopedBeanInterceptorHandler
All Implemented Interfaces:
Serializable, InvocationHandler, javassist.util.proxy.MethodHandler

public class DependentScopedBeanInterceptorHandler
extends InterceptorHandler

Dependent scoped beans interceptor handler.

Version:
$Rev$ $Date$
See Also:
Serialized Form

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

Constructor Detail

DependentScopedBeanInterceptorHandler

public DependentScopedBeanInterceptorHandler(OwbBean<?> bean,
                                             Object instance,
                                             javax.enterprise.context.spi.CreationalContext<?> creationalContext)
Creates a new instance of handler.

Parameters:
bean - dependent bean
instance - bean instance
creationalContext - creational context
Method Detail

invoke

public Object invoke(Object instance,
                     Method method,
                     Method proceed,
                     Object[] arguments)
              throws Throwable

Throws:
Throwable

invoke

public Object invoke(Object instance,
                     Method method,
                     Object[] arguments)
              throws Throwable
Throws:
Throwable

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


Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.