org.apache.webbeans.intercept
Class InvocationContextImpl

java.lang.Object
  extended by org.apache.webbeans.intercept.InvocationContextImpl
All Implemented Interfaces:
javax.interceptor.InvocationContext

public class InvocationContextImpl
extends java.lang.Object
implements javax.interceptor.InvocationContext

Implementation of the InvocationContext interface.


Constructor Summary
InvocationContextImpl(WebBeansContext webBeansContext, OwbBean<?> bean, java.lang.Object instance, java.lang.reflect.Method method, java.lang.Object[] parameters, java.util.List<InterceptorData> datas, InterceptorType type)
          Initializes the invocation context.
 
Method Summary
 java.util.Map<java.lang.String,java.lang.Object> getContextData()
          
 java.lang.reflect.Method getMethod()
          
 java.lang.Object[] getParameters()
          
 java.lang.Object getTarget()
          
 java.lang.Object getTimer()
          
 java.lang.Object proceed()
          
 void setCcKey(java.lang.Object ccKey)
          Sets the alternate key (alternate owner instance) to be used within the passed CreationalContext for dependent interceptors.
 void setCreationalContext(javax.enterprise.context.spi.CreationalContext<?> ownerCreationalContext)
          Sets owner bean creational context.
 void setEJBInvocationContext(javax.interceptor.InvocationContext c)
          Sets EJB invocation context
 void setParameters(java.lang.Object[] params)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InvocationContextImpl

public InvocationContextImpl(WebBeansContext webBeansContext,
                             OwbBean<?> bean,
                             java.lang.Object instance,
                             java.lang.reflect.Method method,
                             java.lang.Object[] parameters,
                             java.util.List<InterceptorData> datas,
                             InterceptorType type)
Initializes the invocation context.

Parameters:
bean - the Bean meta info
instance - target object
method - method
parameters - method parameters
datas - interceptor stack
type - interceptor type
Method Detail

setCreationalContext

public void setCreationalContext(javax.enterprise.context.spi.CreationalContext<?> ownerCreationalContext)
Sets owner bean creational context.

Parameters:
ownerCreationalContext - owner creational context

setEJBInvocationContext

public void setEJBInvocationContext(javax.interceptor.InvocationContext c)
Sets EJB invocation context

Parameters:
c - EJB containers invocation context

getContextData

public java.util.Map<java.lang.String,java.lang.Object> getContextData()

Specified by:
getContextData in interface javax.interceptor.InvocationContext

getMethod

public java.lang.reflect.Method getMethod()

Specified by:
getMethod in interface javax.interceptor.InvocationContext

getParameters

public java.lang.Object[] getParameters()

Specified by:
getParameters in interface javax.interceptor.InvocationContext

getTarget

public java.lang.Object getTarget()

Specified by:
getTarget in interface javax.interceptor.InvocationContext

proceed

public java.lang.Object proceed()
                         throws java.lang.Exception

Specified by:
proceed in interface javax.interceptor.InvocationContext
Throws:
java.lang.Exception

setParameters

public void setParameters(java.lang.Object[] params)

Specified by:
setParameters in interface javax.interceptor.InvocationContext

getTimer

public java.lang.Object getTimer()

Specified by:
getTimer in interface javax.interceptor.InvocationContext

setCcKey

public void setCcKey(java.lang.Object ccKey)
Sets the alternate key (alternate owner instance) to be used within the passed CreationalContext for dependent interceptors.

Parameters:
ccKey - a unique key used to index dependent interceptors


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