Class AbstractInvokerBuilder<B,T>
- All Implemented Interfaces:
jakarta.enterprise.invoke.InvokerBuilder<T>,WeldInvokerBuilder<T>
- Direct Known Subclasses:
InvokerBuilderImpl,InvokerInfoBuilder
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.enterprise.inject.spi.AnnotatedType<B>withArgumentLookup(int position) withArgumentTransformer(int position, Class<?> clazz, String methodName) Registers a transformer for a single argument of the target method.withExceptionTransformer(Class<?> clazz, String methodName) Registers an exception transformer for a possible exception thrown by the target method.withInstanceTransformer(Class<?> clazz, String methodName) Registers a transformer for the instance on which the invoker will be called.withInvocationWrapper(Class<?> clazz, String methodName) Registers an invocation wrapper for given invoker.withReturnValueTransformer(Class<?> clazz, String methodName) Registers a transformer for return value of the target method.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.enterprise.invoke.InvokerBuilder
build
-
Method Details
-
withInstanceLookup
- Specified by:
withInstanceLookupin interfacejakarta.enterprise.invoke.InvokerBuilder<B>- Specified by:
withInstanceLookupin interfaceWeldInvokerBuilder<B>
-
withArgumentLookup
- Specified by:
withArgumentLookupin interfacejakarta.enterprise.invoke.InvokerBuilder<B>- Specified by:
withArgumentLookupin interfaceWeldInvokerBuilder<B>
-
withInstanceTransformer
Description copied from interface:WeldInvokerBuilderRegisters 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:
withInstanceTransformerin interfaceWeldInvokerBuilder<B>- Parameters:
clazz- Class which declares the transformer methodmethodName- transformer method name represented as a String- Returns:
- self
-
withArgumentTransformer
public WeldInvokerBuilder<T> withArgumentTransformer(int position, Class<?> clazz, String methodName) Description copied from interface:WeldInvokerBuilderRegisters 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:
withArgumentTransformerin interfaceWeldInvokerBuilder<B>- Parameters:
position- position of an argument in the invoker's target method that should be transformedclazz- Class which declares the transformer methodmethodName- transformer method name represented as a String- Returns:
- self
-
withReturnValueTransformer
Description copied from interface:WeldInvokerBuilderRegisters 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:
withReturnValueTransformerin interfaceWeldInvokerBuilder<B>- Parameters:
clazz- Class which declares the transformer methodmethodName- transformer method name represented as a String- Returns:
- self
-
withExceptionTransformer
Description copied from interface:WeldInvokerBuilderRegisters 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:
withExceptionTransformerin interfaceWeldInvokerBuilder<B>- Parameters:
clazz- Class which declares the transformer methodmethodName- transformer method name represented as a String- Returns:
- self
-
withInvocationWrapper
Description copied from interface:WeldInvokerBuilderRegisters an invocation wrapper for given invoker.Wrappers must be
staticand must be declared directly on the given class.- Specified by:
withInvocationWrapperin interfaceWeldInvokerBuilder<B>- Parameters:
clazz- Class which declares the transformer methodmethodName- transformer method name represented as a String- Returns:
- self
-
getBeanClass
-
getMethod
-
getConfiguredLookups
-