Class AbstractInvokerBuilder<B,T>

java.lang.Object
org.jboss.weld.invokable.AbstractInvokerBuilder<B,T>
All Implemented Interfaces:
jakarta.enterprise.invoke.InvokerBuilder<T>, WeldInvokerBuilder<T>
Direct Known Subclasses:
InvokerBuilderImpl, InvokerInfoBuilder

public abstract class AbstractInvokerBuilder<B,T> extends Object implements WeldInvokerBuilder<T>
  • Method Details

    • withInstanceLookup

      public WeldInvokerBuilder<T> withInstanceLookup()
      Specified by:
      withInstanceLookup in interface jakarta.enterprise.invoke.InvokerBuilder<B>
      Specified by:
      withInstanceLookup in interface WeldInvokerBuilder<B>
    • withArgumentLookup

      public WeldInvokerBuilder<T> withArgumentLookup(int position)
      Specified by:
      withArgumentLookup in interface jakarta.enterprise.invoke.InvokerBuilder<B>
      Specified by:
      withArgumentLookup in interface WeldInvokerBuilder<B>
    • withInstanceTransformer

      public WeldInvokerBuilder<T> withInstanceTransformer(Class<?> clazz, String methodName)
      Description copied from interface: WeldInvokerBuilder
      Registers a transformer for the instance on which the invoker will be called.

      Transformers may be static, in which case they must be declared directly on the given class, or they may be instance methods, in which case they may be declared on the given class or inherited from any of its supertypes.

      Specified by:
      withInstanceTransformer in interface WeldInvokerBuilder<B>
      Parameters:
      clazz - Class which declares the transformer method
      methodName - transformer method name represented as a String
      Returns:
      self
    • withArgumentTransformer

      public WeldInvokerBuilder<T> withArgumentTransformer(int position, Class<?> clazz, String methodName)
      Description copied from interface: WeldInvokerBuilder
      Registers a transformer for a single argument of the target method.

      Transformers may be static, in which case they must be declared directly on the given class, or they may be instance methods, in which case they may be declared on the given class or inherited from any of its supertypes.

      Specified by:
      withArgumentTransformer in interface WeldInvokerBuilder<B>
      Parameters:
      position - position of an argument in the invoker's target method that should be transformed
      clazz - Class which declares the transformer method
      methodName - transformer method name represented as a String
      Returns:
      self
    • withReturnValueTransformer

      public WeldInvokerBuilder<T> withReturnValueTransformer(Class<?> clazz, String methodName)
      Description copied from interface: WeldInvokerBuilder
      Registers a transformer for return value of the target method.

      Transformers may be static, in which case they must be declared directly on the given class, or they may be instance methods, in which case they may be declared on the given class or inherited from any of its supertypes.

      Specified by:
      withReturnValueTransformer in interface WeldInvokerBuilder<B>
      Parameters:
      clazz - Class which declares the transformer method
      methodName - transformer method name represented as a String
      Returns:
      self
    • withExceptionTransformer

      public WeldInvokerBuilder<T> withExceptionTransformer(Class<?> clazz, String methodName)
      Description copied from interface: WeldInvokerBuilder
      Registers an exception transformer for a possible exception thrown by the target method.

      Transformers may be static, in which case they must be declared directly on the given class, or they may be instance methods, in which case they may be declared on the given class or inherited from any of its supertypes.

      Specified by:
      withExceptionTransformer in interface WeldInvokerBuilder<B>
      Parameters:
      clazz - Class which declares the transformer method
      methodName - transformer method name represented as a String
      Returns:
      self
    • withInvocationWrapper

      public WeldInvokerBuilder<T> withInvocationWrapper(Class<?> clazz, String methodName)
      Description copied from interface: WeldInvokerBuilder
      Registers an invocation wrapper for given invoker.

      Wrappers must be static and must be declared directly on the given class.

      Specified by:
      withInvocationWrapper in interface WeldInvokerBuilder<B>
      Parameters:
      clazz - Class which declares the transformer method
      methodName - transformer method name represented as a String
      Returns:
      self
    • getBeanClass

      public jakarta.enterprise.inject.spi.AnnotatedType<B> getBeanClass()
    • getMethod

      public TargetMethod getMethod()
    • getConfiguredLookups

      public List<ConfiguredLookup> getConfiguredLookups()