|
Invocation API 1.1.0.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.invocation.SimpleInvocationContext
public class SimpleInvocationContext
A base class for invocation contexts. Also can act as the last interceptor in a chain which does not proceed.
Constructor Summary | |
---|---|
SimpleInvocationContext(Object target,
Method method,
Object[] parameters)
Construct a new instance. |
|
SimpleInvocationContext(Object target,
Method method,
Object[] parameters,
Map<String,Object> contextData,
Object timer)
Construct a new instance. |
|
SimpleInvocationContext(Object target,
Method method,
Object[] parameters,
Object timer)
Construct a new instance. |
Method Summary | |
---|---|
Map<String,Object> |
getContextData()
|
Method |
getMethod()
|
Object[] |
getParameters()
|
Object |
getTarget()
|
Object |
getTimer()
|
Object |
proceed()
Throw an exception indicating that the end of the interceptor chain was reached without an invocation being performed. |
void |
setParameters(Object[] parameters)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleInvocationContext(Object target, Method method, Object[] parameters, Map<String,Object> contextData, Object timer)
target
- the target object instancemethod
- the invocation method (may be null
)parameters
- the invocation parameters (may be null
)contextData
- the context data map to usetimer
- the associated timer (may be null
)public SimpleInvocationContext(Object target, Method method, Object[] parameters, Object timer)
target
- the target object instancemethod
- the invocation method (may be null
)parameters
- the invocation parameters (may be null
)timer
- the associated timer (may be null
)public SimpleInvocationContext(Object target, Method method, Object[] parameters)
target
- the target object instancemethod
- the invocation method (may be null
)parameters
- the invocation parameters (may be null
)Method Detail |
---|
public Object getTarget()
getTarget
in interface javax.interceptor.InvocationContext
public Method getMethod()
getMethod
in interface javax.interceptor.InvocationContext
public Object[] getParameters()
getParameters
in interface javax.interceptor.InvocationContext
public void setParameters(Object[] parameters)
setParameters
in interface javax.interceptor.InvocationContext
public Map<String,Object> getContextData()
getContextData
in interface javax.interceptor.InvocationContext
public Object getTimer()
getTimer
in interface javax.interceptor.InvocationContext
public Object proceed() throws Exception
CannotProceedException
, it is declared to throw Exception
so that subclasses
can override this method in a spec-compliant way.
proceed
in interface javax.interceptor.InvocationContext
Exception
- always (in particular, CannotProceedException
)
|
Invocation API 1.1.0.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |