com.schlimm.springcdi.interceptor.processor
Class MethodInvocationWrapper

java.lang.Object
  extended by com.schlimm.springcdi.interceptor.processor.MethodInvocationWrapper
All Implemented Interfaces:
javax.interceptor.InvocationContext

public class MethodInvocationWrapper
extends Object
implements javax.interceptor.InvocationContext

MethodInvocation wrapper that is passed as argument to JSR 318 interceptors.

Author:
Niklas Schlimm

Constructor Summary
MethodInvocationWrapper(org.aopalliance.intercept.MethodInvocation methodInvocation)
           
 
Method Summary
 void addAllContextData(Map<String,Object> contextData)
           
 void addContextData(String name, Object value)
           
 Map<String,Object> getContextData()
           
 Method getMethod()
           
 Object[] getParameters()
           
 Object getTarget()
           
 Object getTimer()
           
 Object proceed()
           
 void setParameters(Object[] params)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodInvocationWrapper

public MethodInvocationWrapper(org.aopalliance.intercept.MethodInvocation methodInvocation)
Method Detail

getContextData

public Map<String,Object> getContextData()
Specified by:
getContextData in interface javax.interceptor.InvocationContext

addAllContextData

public void addAllContextData(Map<String,Object> contextData)

addContextData

public void addContextData(String name,
                           Object value)

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

getTimer

public Object getTimer()
Specified by:
getTimer 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


Copyright © 2011. All Rights Reserved.