BotDependencyConfiguration クラス
- java.
lang. Object - com.
microsoft. bot. integration. spring. BotDependencyConfiguration
- com.
public abstract class BotDependencyConfiguration
これにより、Bot アプリケーションの既定の依存関係の作成が提供されます。
このクラスは、org.springframework.context.annotation.Configuration 注釈 (または SpringBootApplication 注釈) を持つクラスによってサブクラス化する必要があります。
ボットには、使用するコンストラクターを示す @AutoWired を含め、@Componentで注釈を付ける必要があります。
コンストラクターの概要
| コンストラクター | 説明 | |
|---|---|---|
| BotDependencyConfiguration() | ||
メソッドの概要
| 修飾子と型 | メソッドと説明 |
|---|---|
|
Authentication |
getAuthenticationConfiguration(Configuration configuration)
アプリケーションの認証 |
|
Bot |
getBotFrameworkHttpAdaptor(Configuration configuration)
アプリケーションの Bot |
|
Channel |
getChannelProvider(Configuration configuration)
アプリケーションのチャネル |
| Configuration |
getConfiguration()
アプリケーションの構成を返します。 |
|
Conversation |
getConversationState(Storage storage)
Conversation |
|
Credential |
getCredentialProvider(Configuration configuration)
アプリケーションの資格情報 |
| java.util.concurrent.ExecutorService |
getExecutorService()
Executor |
|
Inspection |
getInspectionState(Storage storage)
com.microsoft.bot.builder.inspection.InspectionMiddlewareによって使用される検査 |
| Storage |
getStorage()
Storage オブジェクトを返します。 |
|
User |
getUserState(Storage storage)
User |
メソッドの継承元: java.lang.Object
コンストラクターの詳細
BotDependencyConfiguration
public BotDependencyConfiguration()
メソッドの詳細
getAuthenticationConfiguration
public AuthenticationConfiguration getAuthenticationConfiguration(Configuration configuration)
アプリケーションの AuthenticationConfiguration を返します。 既定では、AuthenticationConfiguration クラスが使用されます。 シングルトンの既定のスコープ。
パラメーター:
戻り値:
getBotFrameworkHttpAdaptor
public BotFrameworkHttpAdapter getBotFrameworkHttpAdaptor(Configuration configuration)
アプリケーションの BotFrameworkHttpAdapter を返します。 既定では、BotFrameworkHttpAdapter クラスが使用されます。 シングルトンの既定のスコープ。
パラメーター:
戻り値:
getChannelProvider
public ChannelProvider getChannelProvider(Configuration configuration)
アプリケーションの ChannelProvider を返します。 既定では、ConfigurationChannelProvider クラスが使用されます。 シングルトンの既定のスコープ。
パラメーター:
戻り値:
getConfiguration
public Configuration getConfiguration()
アプリケーションの構成を返します。 既定では、ClasspathPropertiesConfiguration クラスが使用されます。 シングルトンの既定のスコープ。
戻り値:
getConversationState
public ConversationState getConversationState(Storage storage)
ConversationState オブジェクトを返します。 シングルトンの既定のスコープ。
パラメーター:
戻り値:
getCredentialProvider
public CredentialProvider getCredentialProvider(Configuration configuration)
アプリケーションの CredentialProvider を返します。 既定では、ConfigurationCredentialProvider クラスが使用されます。 シングルトンの既定のスコープ。
パラメーター:
戻り値:
getExecutorService
public ExecutorService getExecutorService()
ExecutorService を返します。
ここでは、bot-connector ExecutorService を返します。 これは考慮すべき領域です。 ここでの目標は、複数のスレッド プールを回避するために、共通の ExecutorService を使用することです。
戻り値:
getInspectionState
public InspectionState getInspectionState(Storage storage)
com.microsoft.bot.builder.inspection.InspectionMiddlewareで使用される InspectionState を作成します。 シングルトンの既定のスコープ。
パラメーター:
戻り値:
getStorage
getUserState
public UserState getUserState(Storage storage)
UserState オブジェクトを返します。 シングルトンの既定のスコープ。
パラメーター:
戻り値: