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:
java.io.Serializable, 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, java.lang.Object instance, javax.enterprise.context.spi.CreationalContext<?> creationalContext)
          Creates a new instance of handler.
 
Method Summary
protected  java.lang.Object callAroundInvokes(java.lang.reflect.Method proceed, java.lang.Object[] arguments, java.util.List<InterceptorData> stack)
          Call around invoke method of the given bean on calling interceptedMethod.
 java.lang.Object invoke(java.lang.Object instance, java.lang.reflect.Method method, java.lang.reflect.Method proceed, java.lang.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

DependentScopedBeanInterceptorHandler

public DependentScopedBeanInterceptorHandler(OwbBean<?> bean,
                                             java.lang.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 java.lang.Object invoke(java.lang.Object instance,
                               java.lang.reflect.Method method,
                               java.lang.reflect.Method proceed,
                               java.lang.Object[] arguments)
                        throws java.lang.Exception

Throws:
java.lang.Exception

callAroundInvokes

protected java.lang.Object callAroundInvokes(java.lang.reflect.Method proceed,
                                             java.lang.Object[] arguments,
                                             java.util.List<InterceptorData> stack)
                                      throws java.lang.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:
java.lang.Exception - for any exception


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