クラス ControlBusCommandRegistry

java.lang.ObjectSE
org.springframework.integration.support.management.ControlBusCommandRegistry
実装されているすべてのインターフェース:
AwareBeanPostProcessorDestructionAwareBeanPostProcessorSmartInitializingSingletonApplicationContextAware

public class ControlBusCommandRegistry extends ObjectSE implements ApplicationContextAware, SmartInitializingSingleton, DestructionAwareBeanPostProcessor
コントロールバスコマンドとそれぞれの SpEL 式の関連を提供するグローバルコンポーネント。
導入:
6.4
作成者:
Artem Bilan
関連事項:
  • コンストラクターの詳細

    • ControlBusCommandRegistry

      public ControlBusCommandRegistry()
  • メソッドの詳細

    • setEagerInitialization

      public void setEagerInitialization(boolean eagerInitialization)
      アプリケーションコンテキストの初期化後に制御バスコマンドの読み込みをオンにするには、true に設定します。
      パラメーター:
      eagerInitialization - このレジストリを積極的に初期化する場合は true です。
    • setApplicationContext

      public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
      次で指定:
      インターフェース ApplicationContextAwaresetApplicationContext 
      例外:
      BeansException
    • afterSingletonsInstantiated

      public void afterSingletonsInstantiated()
      次で指定:
      インターフェース SmartInitializingSingletonafterSingletonsInstantiated 
    • postProcessAfterInitialization

      public ObjectSE postProcessAfterInitialization(ObjectSE bean, StringSE beanName) throws BeansException
      次で指定:
      インターフェース BeanPostProcessorpostProcessAfterInitialization 
      例外:
      BeansException
    • registerControlBusCommands

      public void registerControlBusCommands(StringSE beanName, ObjectSE bean)
      特定の Bean のコントロールバスコマンド (存在する場合) を手動で登録します。Bean は、Lifecycle または CustomizableThreadCreator のインスタンス内にあるか、ManagedResource または IntegrationManagedResource アノテーションでマークされている必要があります。
      パラメーター:
      beanName - 登録名 Bean
      bean - 登録用 Bean
    • requiresDestruction

      public boolean requiresDestruction(ObjectSE bean)
      次で指定:
      インターフェース DestructionAwareBeanPostProcessorrequiresDestruction 
    • postProcessBeforeDestruction

      public void postProcessBeforeDestruction(ObjectSE bean, StringSE beanName) throws BeansException
      次で指定:
      インターフェース DestructionAwareBeanPostProcessorpostProcessBeforeDestruction 
      例外:
      BeansException
    • getCommands

      登録されたコントロールバスコマンドを返します。
      戻り値:
      登録されたコマンド。
    • getExpressionForCommand

      public Expression getExpressionForCommand(StringSE command, ClassSE<?>... parameterTypes)
      パラメーター型を使用して呼び出すコマンドの SpEL 式を取得します。コマンドは beanName.methodName 形式である必要があります。(または、単純な式との下位互換性のために @beanName.methodName() )。beanName が複雑なリテラルである場合は、一重引用符で囲む必要があります (例: 'some.complex.bean-name')。呼び出すターゲットメソッドは、ControlBusMethodFilter 要件に適合し、指定されたパラメーター型と一致する必要があります。
      パラメーター:
      command - 呼び出すコマンド。
      parameterTypes - 呼び出す対象メソッドのパラメーター型。
      戻り値:
      提供されたコマンドの SpEL 式。
      例外:
      IllegalArgumentExceptionSE - 提供されたコマンドがコントロールバスの要件またはターゲットメソッドの契約と一致しない場合。