|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.slim3.container.InvocationContextImpl
public class InvocationContextImpl
An implementation class for InvocationContext.
| Field Summary | |
|---|---|
protected ConcurrentHashMap<String,Object> |
contextData
The context data. |
protected int |
interceptorIndex
The index for interceptor. |
protected Interceptor[] |
interceptors
The interceptors. |
protected Method |
method
The overridden method declared in the super class or interface. |
protected Object[] |
parameters
The parameters. |
protected Method |
proceedMethod
The forwarder method for invoking the overridden method. |
protected Object |
target
The target. |
| Constructor Summary | |
|---|---|
InvocationContextImpl(Interceptor[] interceptors,
Object target,
Method method,
Method proceedMethod,
Object[] parameters)
Constructor. |
|
| Method Summary | |
|---|---|
Map<String,Object> |
getContextData()
|
Interceptor[] |
getInterceptors()
Returns the interceptors. |
Method |
getMethod()
Returns the overridden method declared in the super class or interface. |
Object[] |
getParameters()
|
Method |
getProceedMethod()
Returns the forwarder method for invoking the overridden method. |
Object |
getTarget()
Returns the target. |
Object |
proceed()
|
void |
setParameters(Object[] parameters)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Interceptor[] interceptors
protected Object target
protected Method method
protected Method proceedMethod
protected Object[] parameters
protected int interceptorIndex
protected ConcurrentHashMap<String,Object> contextData
| Constructor Detail |
|---|
public InvocationContextImpl(Interceptor[] interceptors,
Object target,
Method method,
Method proceedMethod,
Object[] parameters)
throws NullPointerException
interceptors - the interceptorstarget - the targetmethod - the overridden method declared in the super class or interfaceproceedMethod - the forwarder method for invoking the overridden methodparameters - the parameters
NullPointerException - if the interceptors parameter is null or if the target
parameter is null or if the method parameter is null or if
the parameters parameter is null| Method Detail |
|---|
public Interceptor[] getInterceptors()
public Object getTarget()
getTarget in interface InvocationContextpublic Method getMethod()
getMethod in interface InvocationContextpublic Method getProceedMethod()
public Object[] getParameters()
getParameters in interface InvocationContextpublic void setParameters(Object[] parameters)
setParameters in interface InvocationContextpublic Map<String,Object> getContextData()
getContextData in interface InvocationContext
public Object proceed()
throws Exception
proceed in interface InvocationContextException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||