Package org.jboss.weld.interceptor.proxy
Class SimpleInvocationContext
java.lang.Object
org.jboss.weld.interceptor.proxy.SimpleInvocationContext
- All Implemented Interfaces:
jakarta.interceptor.InvocationContext,org.jboss.weld.interceptor.WeldInvocationContext
Simple
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.- Author:
- Marius Bogoevici, Jozef Hartinger
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Constructor<?>protected final Set<Annotation>protected final Methodprotected Object[]protected final Methodprotected final Objectprotected final ObjectFields inherited from interface org.jboss.weld.interceptor.WeldInvocationContext
INTERCEPTOR_BINDINGS_KEY -
Constructor Summary
ConstructorsConstructorDescriptionSimpleInvocationContext(Object target, Method targetMethod, Method proceed, Object[] parameters, Set<Annotation> interceptorBindings) SimpleInvocationContext(Constructor<?> constructor, Object[] parameters, Map<String, Object> contextData, Set<Annotation> interceptorBindings) -
Method Summary
Modifier and TypeMethodDescriptionConstructor<?><T extends Annotation>
Set<T>getInterceptorBindingsByType(Class<T> annotationType) Object[]protected MethodgetTimer()newContextData(Set<Annotation> interceptorBindings) proceed()voidsetParameters(Object[] params) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.interceptor.InvocationContext
getInterceptorBinding, getInterceptorBindings
-
Field Details
-
contextData
-
method
-
parameters
-
target
-
timer
-
constructor
-
interceptorBindings
-
proceed
-
-
Constructor Details
-
SimpleInvocationContext
-
SimpleInvocationContext
public SimpleInvocationContext(Constructor<?> constructor, Object[] parameters, Map<String, Object> contextData, Set<Annotation> interceptorBindings)
-
-
Method Details
-
proceed
- Throws:
Exception
-
getContextData
- Specified by:
getContextDatain interfacejakarta.interceptor.InvocationContext
-
newContextData
-
getMethod
- Specified by:
getMethodin interfacejakarta.interceptor.InvocationContext
-
getParameters
- Specified by:
getParametersin interfacejakarta.interceptor.InvocationContext
-
getTarget
- Specified by:
getTargetin interfacejakarta.interceptor.InvocationContext
-
setParameters
- Specified by:
setParametersin interfacejakarta.interceptor.InvocationContext
-
getTimer
- Specified by:
getTimerin interfacejakarta.interceptor.InvocationContext
-
getConstructor
- Specified by:
getConstructorin interfacejakarta.interceptor.InvocationContext
-
getInterceptorBindingsByType
- Specified by:
getInterceptorBindingsByTypein interfaceorg.jboss.weld.interceptor.WeldInvocationContext
-
getInterceptorBindings
- Specified by:
getInterceptorBindingsin interfacejakarta.interceptor.InvocationContext
-
getProceed
-