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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
register
(CommandCatalog registry) Register mappings from <command keyword(s)> to actual behavior.void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext)
-
Constructor Details
-
StandardMethodTargetRegistrar
public StandardMethodTargetRegistrar()
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
-
register
Description copied from interface:MethodTargetRegistrar
Register mappings from <command keyword(s)> to actual behavior.- Specified by:
register
in interfaceMethodTargetRegistrar
-