Class SimpleInvocationContext

  • All Implemented Interfaces:
    jakarta.interceptor.InvocationContext, org.jboss.weld.interceptor.WeldInvocationContext

    public class SimpleInvocationContext
    extends Object
    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 Detail

      • method

        protected final Method method
      • parameters

        protected Object[] parameters
      • target

        protected final Object target
      • timer

        protected final Object timer
      • constructor

        protected final Constructor<?> constructor
      • interceptorBindings

        protected final Set<Annotation> interceptorBindings
      • proceed

        protected final Method proceed
    • Method Detail

      • getContextData

        public Map<String,​Object> getContextData()
        Specified by:
        getContextData in interface jakarta.interceptor.InvocationContext
      • getMethod

        public Method getMethod()
        Specified by:
        getMethod in interface jakarta.interceptor.InvocationContext
      • getParameters

        public Object[] getParameters()
        Specified by:
        getParameters in interface jakarta.interceptor.InvocationContext
      • getTarget

        public Object getTarget()
        Specified by:
        getTarget in interface jakarta.interceptor.InvocationContext
      • setParameters

        public void setParameters​(Object[] params)
        Specified by:
        setParameters in interface jakarta.interceptor.InvocationContext
      • getTimer

        public Object getTimer()
        Specified by:
        getTimer in interface jakarta.interceptor.InvocationContext
      • getConstructor

        public Constructor<?> getConstructor()
        Specified by:
        getConstructor in interface jakarta.interceptor.InvocationContext
      • getInterceptorBindingsByType

        public <T extends AnnotationSet<T> getInterceptorBindingsByType​(Class<T> annotationType)
        Specified by:
        getInterceptorBindingsByType in interface org.jboss.weld.interceptor.WeldInvocationContext
      • getInterceptorBindings

        public Set<Annotation> getInterceptorBindings()
        Specified by:
        getInterceptorBindings in interface org.jboss.weld.interceptor.WeldInvocationContext
      • getProceed

        protected Method getProceed()