Class SimpleInvocationContext

java.lang.Object
org.jboss.weld.interceptor.proxy.SimpleInvocationContext
All Implemented Interfaces:
jakarta.interceptor.InvocationContext, 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 Details

    • contextData

      protected Map<String,Object> contextData
    • 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
  • Constructor Details

  • Method Details

    • proceed

      public Object proceed() throws Exception
      Throws:
      Exception
    • getContextData

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

      protected static Map<String,Object> newContextData(Set<Annotation> interceptorBindings)
    • 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 Annotation> Set<T> getInterceptorBindingsByType(Class<T> annotationType)
      Specified by:
      getInterceptorBindingsByType in interface WeldInvocationContext
      Type Parameters:
      T - annotation type
      Parameters:
      annotationType - type of the interceptor binding annotations
      Returns:
      immutable set of interceptor binding annotations of given type, never null
    • getInterceptorBindings

      public Set<Annotation> getInterceptorBindings()
      Specified by:
      getInterceptorBindings in interface jakarta.interceptor.InvocationContext
    • getProceed

      protected Method getProceed()