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 Details

    • StandardMethodTargetRegistrar

      public StandardMethodTargetRegistrar()
  • Method Details

    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
    • register

      public void register(CommandCatalog registry)
      Description copied from interface: MethodTargetRegistrar
      Register mappings from <command keyword(s)> to actual behavior.
      Specified by:
      register in interface MethodTargetRegistrar