public class SimpleInvocationContext extends Object implements javax.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 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
)public Constructor<?> getConstructor()
getConstructor
in interface javax.interceptor.InvocationContext
Copyright © 2023 JBoss by Red Hat. All rights reserved.