public class SimpleInvocationContext extends Object implements jakarta.interceptor.InvocationContext
| Constructor and Description |
|---|
SimpleInvocationContext(Object target,
Method method,
Object[] parameters)
Construct a new instance.
|
SimpleInvocationContext(Object target,
Method method,
Object[] parameters,
Map<String,Object> contextData,
Object timer,
Constructor<?> constructor)
Construct a new instance.
|
SimpleInvocationContext(Object target,
Method method,
Object[] parameters,
Object timer)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
Constructor<?> |
getConstructor() |
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) |
public SimpleInvocationContext(Object target, Method method, Object[] parameters, Map<String,Object> contextData, Object timer, Constructor<?> constructor)
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 Object getTarget()
getTarget in interface jakarta.interceptor.InvocationContextpublic Method getMethod()
getMethod in interface jakarta.interceptor.InvocationContextpublic Object[] getParameters()
getParameters in interface jakarta.interceptor.InvocationContextpublic void setParameters(Object[] parameters)
setParameters in interface jakarta.interceptor.InvocationContextpublic Map<String,Object> getContextData()
getContextData in interface jakarta.interceptor.InvocationContextpublic Object getTimer()
getTimer in interface jakarta.interceptor.InvocationContextpublic 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 jakarta.interceptor.InvocationContextException - always (in particular, CannotProceedException)public Constructor<?> getConstructor()
getConstructor in interface jakarta.interceptor.InvocationContextCopyright © 2021 JBoss by Red Hat. All rights reserved.