Class StandardMethodTargetRegistrar
java.lang.Object
org.springframework.shell.standard.StandardMethodTargetRegistrar
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,MethodTargetRegistrar
public class StandardMethodTargetRegistrar
extends Object
implements MethodTargetRegistrar, org.springframework.context.ApplicationContextAware
The standard implementation of
MethodTargetRegistrar for new shell
applications, resolves methods annotated with ShellMethod on
ShellComponent beans.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidregister(CommandCatalog registry) Register mappings from <command keyword(s)> to actual behavior.voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
Constructor Details
-
StandardMethodTargetRegistrar
public StandardMethodTargetRegistrar()
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-
register
Description copied from interface:MethodTargetRegistrarRegister mappings from <command keyword(s)> to actual behavior.- Specified by:
registerin interfaceMethodTargetRegistrar
-