クラス DynamicRegistrationBean<D extends Registration.DynamicEE >
java.lang.ObjectSE
org.springframework.boot.web.servlet.RegistrationBean
org.springframework.boot.web.servlet.DynamicRegistrationBean<D>
- 型パラメーター:
D- 動的登録結果
- 実装されているすべてのインターフェース:
Aware, BeanNameAware, ServletContextInitializer, Ordered
public abstract class DynamicRegistrationBean<D extends Registration.DynamicEE>
extends RegistrationBean
implements BeanNameAware
Servlet 3.0+
dynamicEE ベースの登録 Bean の基本クラス。- 導入:
- 2.0.0
- 作成者:
- Phillip Webb, Moritz Halbritter
フィールドのサマリー
インターフェース Ordered から継承されたフィールド
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCEコンストラクターの概要
コンストラクター方法の概要
修飾子と型メソッド説明voidaddInitParameter(StringSE name, StringSE value) 単一の init-parameter を追加し、既存のパラメーターを同じ名前で置き換えます。protected abstract @Nullable DaddRegistration(StringSE description, ServletContextEE servletContext) protected void登録初期パラメーターの変更可能なマップを返します。protected final StringSEgetOrDeduceName(@Nullable ObjectSE value) この登録の名前を推定します。booleanこの登録で非同期操作がサポートされているかどうかを返します。protected final voidregister(StringSE description, ServletContextEE servletContext) この Bean をサーブレットコンテキストに登録します。voidsetAsyncSupported(boolean asyncSupported) この登録で非同期操作がサポートされるかどうかを設定します。voidsetBeanName(StringSE name) voidsetIgnoreRegistrationFailure(boolean ignoreRegistrationFailure) 登録の失敗を無視するかどうかを設定します。voidsetInitParameters(MapSE<StringSE, StringSE> initParameters) この登録の init-parameters を設定します。voidこの登録の名前を設定します。クラス RegistrationBean から継承されたメソッド
getDescription, getOrder, isEnabled, onStartup, setEnabled, setOrder
コンストラクターの詳細
DynamicRegistrationBean
public DynamicRegistrationBean()
メソッドの詳細
setName
setAsyncSupported
public void setAsyncSupported(boolean asyncSupported) この登録で非同期操作がサポートされるかどうかを設定します。指定しない場合、デフォルトはtrueになります。- パラメーター:
asyncSupported- 非同期がサポートされている場合
isAsyncSupported
public boolean isAsyncSupported()この登録で非同期操作がサポートされているかどうかを返します。- 戻り値:
- 非同期がサポートされている場合
setInitParameters
getInitParameters
addInitParameter
register
クラスからコピーされた説明:RegistrationBeanこの Bean をサーブレットコンテキストに登録します。- 次で指定:
- クラス
RegistrationBeanのregister - パラメーター:
description- 登録されているアイテムの説明servletContext- サーブレットコンテキスト
setIgnoreRegistrationFailure
public void setIgnoreRegistrationFailure(boolean ignoreRegistrationFailure) 登録の失敗を無視するかどうかを設定します。true に設定すると、失敗がログに記録されます。false に設定すると、IllegalStateExceptionSE がスローされます。- パラメーター:
ignoreRegistrationFailure- 登録の失敗を無視するかどうか- 導入:
- 3.1.0
setBeanName
- 次で指定:
- インターフェース
BeanNameAwareのsetBeanName
addRegistration
protected abstract @Nullable D addRegistration(StringSE description, ServletContextEE servletContext) configure
getOrDeduceName