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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected org.springframework.context.ApplicationContextprotected CommandCatalogprotected Stream<CompletionResolver>protected org.springframework.core.io.ResourceLoaderprotected ShellgetShell()protected TemplateExecutorprotected org.jline.terminal.Terminalprotected ThemeResolvervoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
-
Constructor Details
-
AbstractShellComponent
public AbstractShellComponent()
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
setResourceLoader
public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader) - Specified by:
setResourceLoaderin interfaceorg.springframework.context.ResourceLoaderAware
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
getApplicationContext
protected org.springframework.context.ApplicationContext getApplicationContext() -
getResourceLoader
protected org.springframework.core.io.ResourceLoader getResourceLoader() -
getShell
-
getTerminal
protected org.jline.terminal.Terminal getTerminal() -
getCommandCatalog
-
getCompletionResolver
-
getTemplateExecutor
-
getThemeResolver
-