Interface AotRepositoryConstructorBuilder.ConstructorParameterCustomizer
- Enclosing interface:
AotRepositoryConstructorBuilder
public static interface AotRepositoryConstructorBuilder.ConstructorParameterCustomizer
Customizer for a AOT repository constructor parameter.
- Since:
- 4.0
- Author:
- Christoph Strobl, Mark Paluch
-
Method Summary
Modifier and TypeMethodDescriptionBind the constructor parameter to a field of the same type using the original parameter name.bindToField(boolean bindToField) Bind the constructor parameter to a field of the same type using the original parameter name.voidorigin(Function<AotRepositoryConstructorBuilder.FragmentParameterContext, AotRepositoryConstructorBuilder.ParameterOrigin> originFunction) Use the givenBeanReferenceto define the constructor parameter origin.voidorigin(BeanReference reference) Use the givenBeanReferenceto define the constructor parameter origin.
-
Method Details
-
bindToField
Bind the constructor parameter to a field of the same type using the original parameter name.- Returns:
thisfor method chaining.
-
bindToField
Bind the constructor parameter to a field of the same type using the original parameter name.- Returns:
thisfor method chaining.
-
origin
Use the givenBeanReferenceto define the constructor parameter origin. Bean references can be by name, by type or by type and name. Using a bean reference renders a lookup to a local variable using the parameter name as guidance for the local variable name- See Also:
-
origin
void origin(Function<AotRepositoryConstructorBuilder.FragmentParameterContext, AotRepositoryConstructorBuilder.ParameterOrigin> originFunction) Use the givenBeanReferenceto define the constructor parameter origin. Bean references can be by name, by type or by type and name.
-