Class StandardMethodTargetRegistrar
java.lang.Object
org.springframework.shell.standard.StandardMethodTargetRegistrar
- All Implemented Interfaces:
org.springframework.shell.MethodTargetRegistrar
public class StandardMethodTargetRegistrar
extends Object
implements org.springframework.shell.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, org.springframework.shell.command.CommandRegistration.BuilderSupplier commandRegistrationBuilderSupplier) -
Method Summary
Modifier and TypeMethodDescriptionvoid
register
(org.springframework.shell.command.CommandCatalog registry)
-
Constructor Details
-
StandardMethodTargetRegistrar
public StandardMethodTargetRegistrar(org.springframework.context.ApplicationContext applicationContext, org.springframework.shell.command.CommandRegistration.BuilderSupplier commandRegistrationBuilderSupplier)
-
-
Method Details
-
register
public void register(org.springframework.shell.command.CommandCatalog registry) - Specified by:
register
in interfaceorg.springframework.shell.MethodTargetRegistrar
-