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 Object
implements javax.interceptor.InvocationContext

Implementation of the InvocationContext interface.


Constructor Summary
InvocationContextImpl(WebBeansContext webBeansContext, OwbBean<?> bean, Object instance, Method method, Object[] parameters, List<InterceptorData> datas, InterceptorType type)
          Initializes the invocation context.
 
Method Summary
 Map<String,Object> getContextData()
          
 Method getMethod()
          
 Object[] getParameters()
          
 Object getTarget()
          
 Object getTimer()
          
 Object proceed()
          
 void setCcKey(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(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,
                             Object instance,
                             Method method,
                             Object[] parameters,
                             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 Map<String,Object> getContextData()

Specified by:
getContextData in interface javax.interceptor.InvocationContext

getMethod

public Method getMethod()

Specified by:
getMethod in interface javax.interceptor.InvocationContext

getParameters

public Object[] getParameters()

Specified by:
getParameters in interface javax.interceptor.InvocationContext

getTarget

public Object getTarget()

Specified by:
getTarget in interface javax.interceptor.InvocationContext

proceed

public Object proceed()
               throws Exception

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

setParameters

public void setParameters(Object[] params)

Specified by:
setParameters in interface javax.interceptor.InvocationContext

getTimer

public Object getTimer()

Specified by:
getTimer in interface javax.interceptor.InvocationContext

setCcKey

public void setCcKey(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.