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:
java.io.Serializable, javassist.util.proxy.MethodHandler
Direct Known Subclasses:
ApplicationScopedBeanIntereptorHandler

public class NormalScopedBeanInterceptorHandler
extends InterceptorHandler

Normal scoped beans interceptor handler.

Version:
$Rev: 1081597 $ $Date: 2011-03-14 23:42:32 +0100 (Mo, 14 Mär 2011) $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.webbeans.intercept.InterceptorHandler
bean, interceptedMethodMap, webBeansContext
 
Constructor Summary
NormalScopedBeanInterceptorHandler(OwbBean<?> bean, javax.enterprise.context.spi.CreationalContext<?> creationalContext)
          Creates a new bean instance
 
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.
protected  javax.enterprise.context.spi.CreationalContext<java.lang.Object> getContextualCreationalContext()
           
protected  java.lang.Object getContextualInstance()
          Gets instance from context.
 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

NormalScopedBeanInterceptorHandler

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

Parameters:
bean - bean
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

getContextualInstance

protected java.lang.Object getContextualInstance()
Gets instance from context.

Returns:
the underlying contextual instance, either cached or resolved from the context

getContextualCreationalContext

protected javax.enterprise.context.spi.CreationalContext<java.lang.Object> getContextualCreationalContext()


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