Package org.bremersee.apiclient.webflux
Class Invocation
- java.lang.Object
-
- org.bremersee.apiclient.webflux.Invocation
-
- Direct Known Subclasses:
InvocationParameter
public class Invocation extends Object
The invocation.- Author:
- Christian Bremer
-
-
Constructor Summary
Constructors Constructor Description Invocation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T,A extends Annotation>
Optional<T>findAnnotationValueOnMethod(Class<A> annotationType, Predicate<A> condition, Function<A,T> mapper)
Find annotation value on method.<T,A extends Annotation>
Optional<T>findAnnotationValueOnParameter(int parameterIndex, Class<A> annotationType, Predicate<A> condition, Function<A,T> mapper)
Find annotation value on parameter.<T,A extends Annotation>
Optional<T>findAnnotationValueOnTargetClass(Class<A> annotationType, Predicate<A> condition, Function<A,T> mapper)
Find annotation value on target class.Stream<InvocationParameter>
toMethodParameterStream()
To method parameter stream.String
toString()
-
-
-
Method Detail
-
toMethodParameterStream
public Stream<InvocationParameter> toMethodParameterStream()
To method parameter stream.- Returns:
- the stream
-
findAnnotationValueOnTargetClass
public <T,A extends Annotation> Optional<T> findAnnotationValueOnTargetClass(Class<A> annotationType, Predicate<A> condition, Function<A,T> mapper)
Find annotation value on target class.- Type Parameters:
T
- the type parameterA
- the type parameter- Parameters:
annotationType
- the annotation typecondition
- the conditionmapper
- the mapper- Returns:
- the optional
-
findAnnotationValueOnMethod
public <T,A extends Annotation> Optional<T> findAnnotationValueOnMethod(Class<A> annotationType, Predicate<A> condition, Function<A,T> mapper)
Find annotation value on method.- Type Parameters:
T
- the type parameterA
- the type parameter- Parameters:
annotationType
- the annotation typecondition
- the conditionmapper
- the mapper- Returns:
- the optional
-
findAnnotationValueOnParameter
public <T,A extends Annotation> Optional<T> findAnnotationValueOnParameter(int parameterIndex, Class<A> annotationType, Predicate<A> condition, Function<A,T> mapper)
Find annotation value on parameter.- Type Parameters:
T
- the type parameterA
- the type parameter- Parameters:
parameterIndex
- the parameter indexannotationType
- the annotation typecondition
- the conditionmapper
- the mapper- Returns:
- the optional
-
-