クラス CommandRegistry
java.lang.ObjectSE
org.springframework.shell.core.command.CommandRegistry
- 実装済みのインターフェース一覧:
org.springframework.beans.factory.Aware、org.springframework.beans.factory.SmartInitializingSingleton、org.springframework.context.ApplicationContextAware
public class CommandRegistry
extends ObjectSE
implements org.springframework.beans.factory.SmartInitializingSingleton, org.springframework.context.ApplicationContextAware
Command のレジストリを表すクラスです。Spring Bean として定義されている場合、Spring によって利用可能なすべてのコマンドが自動的に設定されます。コマンドは実行時に登録および登録解除することもできます。コマンドは名前によって一意に識別されます。
- 作成者:
- Janne Valkealahti, Piotr Olaszewski, Mahmoud Ben Hassine
コンストラクター概要
コンストラクター方法の概要
修飾子と型メソッド説明voidvoid@Nullable CommandgetCommandByAlias(StringSE name) @Nullable CommandgetCommandByName(StringSE name) getCommandsByPrefix(StringSE prefix) voidregisterCommand(Command command) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidunregisterCommand(Command command)
コンストラクターの詳細
CommandRegistry
public CommandRegistry()CommandRegistry
メソッドの詳細
getCommands
getCommandByName
getCommandByAlias
getCommandsByPrefix
registerCommand
unregisterCommand
clearCommands
public void clearCommands()afterSingletonsInstantiated
public void afterSingletonsInstantiated()- 次で指定:
- インターフェース
org.springframework.beans.factory.SmartInitializingSingletonのafterSingletonsInstantiated
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - 次で指定:
- インターフェース
org.springframework.context.ApplicationContextAwareのsetApplicationContext - 例外:
org.springframework.beans.BeansException