クラス SimpleTaskNameResolver
java.lang.ObjectSE
org.springframework.cloud.task.repository.support.SimpleTaskNameResolver
- 実装されたすべてのインターフェース:
org.springframework.beans.factory.Aware
、TaskNameResolver
、org.springframework.context.ApplicationContextAware
public class SimpleTaskNameResolver
extends ObjectSE
implements TaskNameResolver, org.springframework.context.ApplicationContextAware
TaskNameResolver
インターフェースのシンプルな実装。次の優先順位に基づいてタスクに名前を付けます。- 構成されたプロパティ
spring.cloud.task.name
ApplicationContext
の ID。
- 作成者:
- Michael Minella
- 関連事項:
ContextIdApplicationContextInitializer
コンストラクターのサマリー
メソッドのサマリー
修飾子と型メソッド説明void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) void
setConfiguredName
(StringSE configuredName)
コンストラクターの詳細
SimpleTaskNameResolver
public SimpleTaskNameResolver()
メソッドの詳細
setConfiguredName
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - 次で指定:
- インターフェース
org.springframework.context.ApplicationContextAware
のsetApplicationContext
- 例外:
org.springframework.beans.BeansException
getTaskName
- 次で指定:
- インターフェース
TaskNameResolver
のgetTaskName
- 戻り値:
- このコンテキスト内で実行されているタスクの名前。