Package io.micronaut.inject
Interface ExecutableMethodsDefinition<T>
-
- Type Parameters:
T
- The bean type
- All Known Implementing Classes:
AbstractExecutableMethodsDefinition
@Internal public interface ExecutableMethodsDefinition<T>
Collects a set of executable methodsExecutableMethod
.- Since:
- 3.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <R> java.util.Optional<ExecutableMethod<T,R>>
findMethod(java.lang.String name, java.lang.Class<?>... argumentTypes)
Finds a singleExecutableMethod
for the given name and argument types.<R> java.util.stream.Stream<ExecutableMethod<T,R>>
findPossibleMethods(java.lang.String name)
Finds possible methods for the given method name.java.util.Collection<ExecutableMethod<T,?>>
getExecutableMethods()
-
-
-
Method Detail
-
findMethod
@NonNull <R> java.util.Optional<ExecutableMethod<T,R>> findMethod(@NonNull java.lang.String name, @NonNull java.lang.Class<?>... argumentTypes)
Finds a singleExecutableMethod
for the given name and argument types.- Type Parameters:
R
- The return type- Parameters:
name
- The method nameargumentTypes
- The argument types- Returns:
- An optional
ExecutableMethod
-
findPossibleMethods
@NonNull <R> java.util.stream.Stream<ExecutableMethod<T,R>> findPossibleMethods(@NonNull java.lang.String name)
Finds possible methods for the given method name.- Type Parameters:
R
- The return type- Parameters:
name
- The method name- Returns:
- The possible methods
-
getExecutableMethods
@NonNull java.util.Collection<ExecutableMethod<T,?>> getExecutableMethods()
- Returns:
- The
ExecutableMethod
instances for this definition
-
-