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
ConstructorsConstructorDescriptionStandardMethodTargetRegistrar(org.springframework.context.ApplicationContext applicationContext, org.springframework.shell.command.CommandRegistration.BuilderSupplier commandRegistrationBuilderSupplier) -
Method Summary
Modifier and TypeMethodDescriptionvoidregister(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:
registerin interfaceorg.springframework.shell.MethodTargetRegistrar
-