You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Command annotation is a replacement for @ShellComponent and @ShellMethod.
@ShellComponent was used as a @Component to easily add class container into context as a bean and then methods in it became possible targets as invocation.
@ShellMethod was used to target methods in @ShellComponent bean as candidates as shell commands.
Plan is to do a modern update how @Command overall would work as we don't need separate annotations if we do a bit more spring kung fu for scanning things from a classpath.
@Command Can be defined on both class and method
Annotated on a class level would introduce it to be a candidate for command container(bean instance as we need only one).
Annotated on a method level would target that particular method as a CommandRegistration.
Annotation on a class level would allow defining some common parameters which has been a requested feature so that there is a less duplication on an actual methods.
- This is a first commit to add new annotation model
which eventually will replace old legacy annotations
like ShellComponent, ShellMethod, @ShellOption, etc.
- Adds subset of features needed for parity with manual
use of CommandRegistration.
- Relates spring-projects#637
- Relates spring-projects#638
- Relates spring-projects#639
- Relates spring-projects#640
- Relates spring-projects#641
@Command
annotation is a replacement for@ShellComponent
and@ShellMethod
.@ShellComponent
was used as a@Component
to easily add class container into context as a bean and then methods in it became possible targets as invocation.@ShellMethod
was used to target methods in@ShellComponent
bean as candidates as shell commands.Plan is to do a modern update how
@Command
overall would work as we don't need separate annotations if we do a bit more spring kung fu for scanning things from a classpath.@Command
Can be defined on both class and methodCommandRegistration
.Possible field ideas:
The text was updated successfully, but these errors were encountered: