AutowiredAnnotationBeanPostProcessor.
When resolving arguments in a native image, the Method being used
must be marked with an introspection hint
so that field annotations can be read. Full invocation hints are only required if the
resolveAndInvoke(RegisteredBean, Object) method of this class is
being used (typically to support private methods).
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final Class | |
| private final boolean | |
| private final String[] |
| Access | Constructor and Description |
|---|---|
| private | AutowiredMethodArgumentsResolver(String methodName, Class<?>[] parameterTypes, boolean required, String[] shortcuts)
|
| Modifier and Type | Method and Description |
|---|---|
| public static AutowiredMethodArgumentsResolver | Returns: a newAutowiredFieldValueResolver instancethe method name methodName, Class<?>... the factory method parameter types parameterTypes)Create a new |
| public static AutowiredMethodArgumentsResolver | Returns: a newAutowiredFieldValueResolver instancethe method name methodName, Class<?>... the factory method parameter types parameterTypes)Create a new |
| private Method | |
| public void | resolve(RegisteredBean
the registered bean registeredBean, ThrowingConsumer<AutowiredArguments> the action to execute with the resolved method arguments action)Resolve the method arguments for the specified registered bean and provide it to the given action. |
| public AutowiredArguments | Returns: the resolved method argumentsthe registered bean registeredBean)Resolve the method arguments for the specified registered bean. |
| public void | resolveAndInvoke(RegisteredBean
the registered bean registeredBean, Object the bean instance instance)Resolve the method arguments for the specified registered bean and invoke the method using reflection. |
| private AutowiredArguments | |
| private String | |
| public AutowiredMethodArgumentsResolver | Returns: a newAutowiredMethodArgumentsResolver instance that uses
the shortcutsthe bean names to use as shortcuts (aligned with the
method parameters) beanNames)Return a new |
| methodName | back to summary |
|---|---|
| private final String methodName | |
| parameterTypes | back to summary |
|---|---|
| private final Class<?>[] parameterTypes | |
| required | back to summary |
|---|---|
| private final boolean required | |
| shortcuts | back to summary |
|---|---|
| private final String[] shortcuts
| |
| AutowiredMethodArgumentsResolver | back to summary |
|---|---|
| private AutowiredMethodArgumentsResolver(String methodName, Class<?>[] parameterTypes, boolean required, String[] shortcuts) | |
| forMethod | back to summary |
|---|---|
| public static AutowiredMethodArgumentsResolver forMethod(String methodName, Class<?>... parameterTypes) Create a new
| |
| forRequiredMethod | back to summary |
|---|---|
| public static AutowiredMethodArgumentsResolver forRequiredMethod(String methodName, Class<?>... parameterTypes) Create a new
| |
| getMethod | back to summary |
|---|---|
| private Method getMethod(RegisteredBean registeredBean) | |
| resolve | back to summary |
|---|---|
| public void resolve(RegisteredBean registeredBean, ThrowingConsumer<AutowiredArguments> action) Resolve the method arguments for the specified registered bean and provide it to the given action.
| |
| resolve | back to summary |
|---|---|
| public AutowiredArguments resolve(RegisteredBean registeredBean) Resolve the method arguments for the specified registered bean.
| |
| resolveAndInvoke | back to summary |
|---|---|
| public void resolveAndInvoke(RegisteredBean registeredBean, Object instance) Resolve the method arguments for the specified registered bean and invoke the method using reflection.
| |
| resolveArguments | back to summary |
|---|---|
private AutowiredArguments resolveArguments(RegisteredBean registeredBean, Method method)
| |
| toCommaSeparatedNames | back to summary |
|---|---|
| private String toCommaSeparatedNames(Class<?>... parameterTypes) | |
| withShortcut | back to summary |
|---|---|
| public AutowiredMethodArgumentsResolver withShortcut(String... beanNames) Return a new
| |