public class SimpleInvocationContext extends Object
InvocationContext implementation whose proceed() invokes the target method directly without calling any interceptors. If this is not
a method interception, a call to proceed() always returns null.| Modifier and Type | Field and Description |
|---|---|
protected Constructor<?> |
constructor |
protected Map<String,Object> |
contextData |
protected Set<Annotation> |
interceptorBindings |
protected Method |
method |
protected Object[] |
parameters |
protected Method |
proceed |
protected Object |
target |
protected Object |
timer |
| Constructor and Description |
|---|
SimpleInvocationContext(Constructor<?> constructor,
Object[] parameters,
Map<String,Object> contextData,
Set<Annotation> interceptorBindings) |
SimpleInvocationContext(Object target,
Method targetMethod,
Method proceed,
Object[] parameters,
Set<Annotation> interceptorBindings) |
| Modifier and Type | Method and Description |
|---|---|
Constructor<?> |
getConstructor() |
Map<String,Object> |
getContextData() |
Set<Annotation> |
getInterceptorBindings()
The returning set may be empty if only interceptors using the
Interceptors annotation are associated. |
<T extends Annotation> |
getInterceptorBindingsByType(Class<T> annotationType)
The returning set may be empty if only interceptors using the
Interceptors annotation are associated. |
Method |
getMethod() |
Object[] |
getParameters() |
protected Method |
getProceed() |
Object |
getTarget() |
Object |
getTimer() |
protected static Map<String,Object> |
newContextData(Set<Annotation> interceptorBindings) |
Object |
proceed() |
void |
setParameters(Object[] params) |
protected final Method method
protected Object[] parameters
protected final Object target
protected final Object timer
protected final Constructor<?> constructor
protected final Set<Annotation> interceptorBindings
protected final Method proceed
public SimpleInvocationContext(Object target, Method targetMethod, Method proceed, Object[] parameters, Set<Annotation> interceptorBindings)
public SimpleInvocationContext(Constructor<?> constructor, Object[] parameters, Map<String,Object> contextData, Set<Annotation> interceptorBindings)
public Map<String,Object> getContextData()
getContextData in interface javax.interceptor.InvocationContextprotected static Map<String,Object> newContextData(Set<Annotation> interceptorBindings)
public Method getMethod()
getMethod in interface javax.interceptor.InvocationContextpublic Object[] getParameters()
getParameters in interface javax.interceptor.InvocationContextpublic Object getTarget()
getTarget in interface javax.interceptor.InvocationContextpublic void setParameters(Object[] params)
setParameters in interface javax.interceptor.InvocationContextpublic Object getTimer()
getTimer in interface javax.interceptor.InvocationContextpublic Constructor<?> getConstructor()
getConstructor in interface javax.interceptor.InvocationContextpublic <T extends Annotation> Set<T> getInterceptorBindingsByType(Class<T> annotationType)
ExperimentalInvocationContextInterceptors annotation are associated.getInterceptorBindingsByType in interface ExperimentalInvocationContextT - subclass of AnnotationannotationType - type of annotationpublic Set<Annotation> getInterceptorBindings()
ExperimentalInvocationContextInterceptors annotation are associated.getInterceptorBindings in interface ExperimentalInvocationContextprotected Method getProceed()
Copyright © 2015. All Rights Reserved.