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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected org.springframework.context.ApplicationContext
protected CommandCatalog
protected Stream<CompletionResolver>
protected org.springframework.core.io.ResourceLoader
protected Shell
getShell()
protected TemplateExecutor
protected org.jline.terminal.Terminal
protected ThemeResolver
protected ViewComponentBuilder
void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) void
setResourceLoader
(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:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
setResourceLoader
public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader) - Specified by:
setResourceLoader
in interfaceorg.springframework.context.ResourceLoaderAware
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in 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
-
getViewComponentBuilder
-