クラス IntegrationGraphServer

java.lang.ObjectSE
org.springframework.integration.graph.IntegrationGraphServer
実装されたすべてのインターフェース:
EventListenerSEAwareApplicationContextAwareApplicationListener<ContextRefreshedEvent>

@ImportRuntimeHints(org.springframework.integration.graph.IntegrationGraphRuntimeHints.class) public class IntegrationGraphServer extends ObjectSE implements ApplicationContextAware, ApplicationListener<ContextRefreshedEvent>
ランタイムオブジェクトモデルグラフを作成します。
導入:
4.3
作成者:
Gary Russell, Artem Bilan, Christian Tzolov
  • コンストラクターの詳細

    • IntegrationGraphServer

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

    • setApplicationContext

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

      protected ApplicationContext getApplicationContext()
    • setApplicationName

      public void setApplicationName(StringSE applicationName)
      "name" キーの "contentDescriptor" に表示されるアプリケーション名を設定します。指定しない場合、アプリケーションコンテキスト環境のプロパティ 'spring.application.name' が使用されます(存在する場合)。
      パラメーター:
      applicationName - アプリケーション名。
    • setAdditionalPropertiesCallback

      public void setAdditionalPropertiesCallback(@Nullable FunctionSE<NamedComponent,MapSE<StringSE,ObjectSE>> additionalPropertiesCallback)
      NamedComponent に対して呼び出されるコールバック FunctionSE を指定して、ターゲット IntegrationNode に追加のプロパティを設定します。
      パラメーター:
      additionalPropertiesCallback - プロパティに使用する FunctionSE
      導入:
      5.1
    • onApplicationEvent

      public void onApplicationEvent(ContextRefreshedEvent event)
      次で指定:
      インターフェース ApplicationListener<ContextRefreshedEvent>onApplicationEvent 
    • getGraph

      public Graph getGraph()
      キャッシュされたグラフを返します。グラフはキャッシュされますが、その中のデータ(統計など)は動的です。
      戻り値:
      グラフ。
      関連事項:
    • rebuild

      public Graph rebuild()
      グラフを再構築し、再キャッシュして、返します。アプリケーションコンポーネントが変更(追加または削除)された場合は、この方法を使用します。
      戻り値:
      グラフ。
      関連事項:
    • getBeansOfType

      protected <T> MapSE<StringSE,T> getBeansOfType(ClassSE<T> type)
      アプリケーションコンテキストから、指定された型の Bean を取得します。このメソッドは、いくつかのカスタムロジックに拡張できます。親アプリケーションコンテキストからも Bean を取得します。
      型パラメーター:
      T - 取得する Bean の型
      パラメーター:
      type - 取得する Bean の型
      戻り値:
      提供された型の Bean の MapSE
      導入:
      5.1