Package io.micronaut.inject
Interface ExecutableMethodsDefinition<T>
- Type Parameters:
T
- The bean type
- All Known Implementing Classes:
AbstractExecutableMethodsDefinition
Collects a set of executable methods
ExecutableMethod
.- Since:
- 3.0
- Author:
- Denis Stepanov
-
Method Summary
Modifier and TypeMethodDescription<R> @NonNull Optional<ExecutableMethod<T,
R>> findMethod
(@NonNull String name, @NonNull Class<?>... argumentTypes) Finds a singleExecutableMethod
for the given name and argument types.<R> @NonNull Stream<ExecutableMethod<T,
R>> Finds possible methods for the given method name.
-
Method Details
-
findMethod
@NonNull <R> @NonNull Optional<ExecutableMethod<T,R>> findMethod(@NonNull @NonNull String name, @NonNull @NonNull 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> @NonNull Stream<ExecutableMethod<T,R>> findPossibleMethods(@NonNull @NonNull 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
- Returns:
- The
ExecutableMethod
instances for this definition
-