Class AbstractShellComponent

java.lang.Object
org.springframework.shell.standard.AbstractShellComponent
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.context.ResourceLoaderAware
Direct Known Subclasses:
Clear, Completion, Help, Script, Stacktrace, Version

public abstract class AbstractShellComponent extends Object implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ResourceLoaderAware
Base class helping to build shell components.
  • Constructor Details

    • AbstractShellComponent

      public AbstractShellComponent()
  • Method Details

    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException
    • setResourceLoader

      public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
      Specified by:
      setResourceLoader in interface org.springframework.context.ResourceLoaderAware
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • getApplicationContext

      protected org.springframework.context.ApplicationContext getApplicationContext()
    • getResourceLoader

      protected org.springframework.core.io.ResourceLoader getResourceLoader()
    • getShell

      protected Shell getShell()
    • getTerminal

      protected org.jline.terminal.Terminal getTerminal()
    • getCommandCatalog

      protected CommandCatalog getCommandCatalog()
    • getCompletionResolver

      protected Stream<CompletionResolver> getCompletionResolver()
    • getTemplateExecutor

      protected TemplateExecutor getTemplateExecutor()
    • getThemeResolver

      protected ThemeResolver getThemeResolver()