BotDependencyConfiguration クラス

  • java.lang.Object
    • com.microsoft.bot.integration.spring.BotDependencyConfiguration

public abstract class BotDependencyConfiguration

これにより、Bot アプリケーションの既定の依存関係の作成が提供されます。

このクラスは、org.springframework.context.annotation.Configuration 注釈 (または SpringBootApplication 注釈) を持つクラスによってサブクラス化する必要があります。

ボットには、使用するコンストラクターを示す @AutoWired を含め、@Componentで注釈を付ける必要があります。

コンストラクターの概要

コンストラクター 説明
BotDependencyConfiguration()

メソッドの概要

修飾子と型 メソッドと説明
AuthenticationConfiguration getAuthenticationConfiguration(Configuration configuration)

アプリケーションの認証構成を返します。

BotFrameworkHttpAdapter getBotFrameworkHttpAdaptor(Configuration configuration)

アプリケーションの BotFrameworkHttpアダプターを返します。

ChannelProvider getChannelProvider(Configuration configuration)

アプリケーションのチャネルプロバイダーを返します。

Configuration getConfiguration()

アプリケーションの構成を返します。

ConversationState getConversationState(Storage storage)

ConversationState オブジェクトを返します。

CredentialProvider getCredentialProvider(Configuration configuration)

アプリケーションの資格情報プロバイダーを返します。

java.util.concurrent.ExecutorService getExecutorService()

Executorサービスを返します。

InspectionState getInspectionState(Storage storage)

com.microsoft.bot.builder.inspection.InspectionMiddlewareによって使用される検査状態を作成します。

Storage getStorage()

Storage オブジェクトを返します。

UserState getUserState(Storage storage)

UserState オブジェクトを返します。

メソッドの継承元: java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

コンストラクターの詳細

BotDependencyConfiguration

public BotDependencyConfiguration()

メソッドの詳細

getAuthenticationConfiguration

public AuthenticationConfiguration getAuthenticationConfiguration(Configuration configuration)

アプリケーションの AuthenticationConfiguration を返します。 既定では、AuthenticationConfiguration クラスが使用されます。 シングルトンの既定のスコープ。

パラメーター:

configuration - 読み取り対象の Configuration オブジェクト。

戻り値:

AuthenticationConfiguration オブジェクト。

getBotFrameworkHttpAdaptor

public BotFrameworkHttpAdapter getBotFrameworkHttpAdaptor(Configuration configuration)

アプリケーションの BotFrameworkHttpAdapter を返します。 既定では、BotFrameworkHttpAdapter クラスが使用されます。 シングルトンの既定のスコープ。

パラメーター:

configuration - 読み取り対象の Configuration オブジェクト。

戻り値:

BotFrameworkHttpAdapter オブジェクト。

getChannelProvider

public ChannelProvider getChannelProvider(Configuration configuration)

アプリケーションの ChannelProvider を返します。 既定では、ConfigurationChannelProvider クラスが使用されます。 シングルトンの既定のスコープ。

パラメーター:

configuration - 読み取り対象の Configuration オブジェクト。

戻り値:

ChannelProvider オブジェクト。

getConfiguration

public Configuration getConfiguration()

アプリケーションの構成を返します。 既定では、ClasspathPropertiesConfiguration クラスが使用されます。 シングルトンの既定のスコープ。

戻り値:

Configuration オブジェクト。

getConversationState

public ConversationState getConversationState(Storage storage)

ConversationState オブジェクトを返します。 シングルトンの既定のスコープ。

パラメーター:

storage - 使用する Storage オブジェクト。

戻り値:

ConversationState オブジェクト。

getCredentialProvider

public CredentialProvider getCredentialProvider(Configuration configuration)

アプリケーションの CredentialProvider を返します。 既定では、ConfigurationCredentialProvider クラスが使用されます。 シングルトンの既定のスコープ。

パラメーター:

configuration - 読み取り対象の Configuration オブジェクト。

戻り値:

CredentialProvider オブジェクト。

getExecutorService

public ExecutorService getExecutorService()

ExecutorService を返します。

ここでは、bot-connector ExecutorService を返します。 これは考慮すべき領域です。 ここでの目標は、複数のスレッド プールを回避するために、共通の ExecutorService を使用することです。

戻り値:

ExecutorService。

getInspectionState

public InspectionState getInspectionState(Storage storage)

com.microsoft.bot.builder.inspection.InspectionMiddlewareで使用される InspectionState を作成します。 シングルトンの既定のスコープ。

パラメーター:

storage - 使用するストレージ。 getStorage()

戻り値:

指定したストレージを使用する InspectionState オブジェクト。

getStorage

public Storage getStorage()

Storage オブジェクトを返します。 シングルトンの既定のスコープ。

戻り値:

Storage オブジェクト。

getUserState

public UserState getUserState(Storage storage)

UserState オブジェクトを返します。 シングルトンの既定のスコープ。

パラメーター:

storage - 使用する Storage オブジェクト。

戻り値:

UserState オブジェクト。

適用対象