public abstract class AbstractAnnotationConfigDispatcherHandlerInitializer extends AbstractDispatcherHandlerInitializer
@Configuration クラスで構成された DispatcherHandler をサーブレットコンテキストに登録し、ServletHttpHandlerAdapter でラップする WebApplicationInitializer 実装の基本クラス。getConfigClasses() を実装するには、具体的な実装が必要です。その他のテンプレートおよびカスタマイズ方法は、AbstractDispatcherHandlerInitializer によって提供されます。
DEFAULT_SERVLET_MAPPING, DEFAULT_SERVLET_NAME| コンストラクターと説明 |
|---|
AbstractAnnotationConfigDispatcherHandlerInitializer() |
| 修飾子と型 | メソッドと説明 |
|---|---|
protected ApplicationContext | createApplicationContext()DispatcherHandler に提供されるアプリケーションコンテキストを作成します。 |
protected abstract ClassSE<?>[] | getConfigClasses() |
createDispatcherHandler, createHandlerAdapter, customizeRegistration, getServletMapping, getServletName, onStartup, refreshApplicationContext, registerCloseListener, registerDispatcherHandlercloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic AbstractAnnotationConfigDispatcherHandlerInitializer()
protected ApplicationContext createApplicationContext()
DispatcherHandler に提供されるアプリケーションコンテキストを作成します。 返されたコンテキストは、Spring の DispatcherHandler.DispatcherHandler(ApplicationContext) に委譲されます。そのため、通常、コントローラー、ビューリゾルバー、その他の Web 関連の Bean が含まれています。
この実装は AnnotationConfigApplicationContext を作成し、getConfigClasses() によって返されるアノテーション付きクラスを提供します。
protected abstract ClassSE<?>[] getConfigClasses()