Class Version
java.lang.Object
org.springframework.shell.core.command.Version
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware,Command
public class Version
extends Object
implements Command, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
Command to print the current version of Spring Shell.
- Author:
- Janne Valkealahti, Mahmoud Ben Hassine, Piotr Olaszewski, David Pilar
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordNested classes/interfaces inherited from interface org.springframework.shell.core.command.Command
Command.Builder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(CommandContext commandContext) Execute the command within the given context.Get a short description of the command.getGroup()Get the group of the command.voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetBuildProperties(Version.BuildProperties buildProperties) voidsetGitProperties(Version.GitProperties gitProperties) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.shell.core.command.Command
getAliases, getAvailabilityProvider, getCompletionProvider, getHelp, getName, getOptions, isHidden
-
Constructor Details
-
Version
public Version()
-
-
Method Details
-
setBuildProperties
-
setGitProperties
-
getDescription
Description copied from interface:CommandGet a short description of the command.- Specified by:
getDescriptionin interfaceCommand- Returns:
- the description of the command
-
getGroup
Description copied from interface:CommandGet the group of the command. -
execute
Description copied from interface:CommandExecute the command within the given context. -
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
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-