Package org.springframework.aot.hint
Class ExecutableHint.Builder
java.lang.Object
org.springframework.aot.hint.ExecutableHint.Builder
- Enclosing class:
- ExecutableHint
Builder for
ExecutableHint
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Create anExecutableHint
based on the state of this builder.setModes
(ExecutableMode... modes) Set the modes to use.withMode
(ExecutableMode mode) Add the specified mode if necessary.
-
Method Details
-
withMode
Add the specified mode if necessary.- Parameters:
mode
- the mode to add- Returns:
this
, to facilitate method chaining
-
setModes
Set the modes to use.- Parameters:
modes
- the mode to use- Returns:
this
, to facilitate method chaining
-
build
Create anExecutableHint
based on the state of this builder.- Returns:
- an executable hint
-