クラス CommandRegistry

java.lang.ObjectSE
org.springframework.shell.core.command.CommandRegistry
実装済みのインターフェース一覧:
org.springframework.beans.factory.Awareorg.springframework.beans.factory.SmartInitializingSingletonorg.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
  • コンストラクターの詳細

    • CommandRegistry

      public CommandRegistry()
    • CommandRegistry

      public CommandRegistry(SetSE<Command> commands)
  • メソッドの詳細

    • getCommands

      public SetSE<Command> getCommands()
    • getCommandByName

      public @Nullable Command getCommandByName(StringSE name)
    • getCommandByAlias

      public @Nullable Command getCommandByAlias(StringSE name)
    • getCommandsByPrefix

      public ListSE<Command> getCommandsByPrefix(StringSE prefix)
    • registerCommand

      public void registerCommand(Command command)
    • unregisterCommand

      public void unregisterCommand(Command command)
    • clearCommands

      public void clearCommands()
    • afterSingletonsInstantiated

      public void afterSingletonsInstantiated()
      次で指定:
      インターフェース org.springframework.beans.factory.SmartInitializingSingletonafterSingletonsInstantiated 
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      次で指定:
      インターフェース org.springframework.context.ApplicationContextAwaresetApplicationContext 
      例外:
      org.springframework.beans.BeansException