Class StandardMethodTargetRegistrar
java.lang.Object
org.springframework.shell.standard.StandardMethodTargetRegistrar
- All Implemented Interfaces:
MethodTargetRegistrar
The standard implementation of
MethodTargetRegistrar
for new shell
applications, resolves methods annotated with ShellMethod
on
ShellComponent
beans.-
Constructor Summary
ConstructorDescriptionStandardMethodTargetRegistrar
(org.springframework.context.ApplicationContext applicationContext, CommandRegistration.BuilderSupplier commandRegistrationBuilderSupplier) -
Method Summary
Modifier and TypeMethodDescriptionvoid
register
(CommandCatalog registry) Register mappings from <command keyword(s)> to actual behavior.
-
Constructor Details
-
StandardMethodTargetRegistrar
public StandardMethodTargetRegistrar(org.springframework.context.ApplicationContext applicationContext, CommandRegistration.BuilderSupplier commandRegistrationBuilderSupplier)
-
-
Method Details
-
register
Description copied from interface:MethodTargetRegistrar
Register mappings from <command keyword(s)> to actual behavior.- Specified by:
register
in interfaceMethodTargetRegistrar
-