インターフェース WebServerApplicationContext
- すべてのスーパーインターフェース:
ApplicationContext
、ApplicationEventPublisher
、BeanFactory
、EnvironmentCapable
、HierarchicalBeanFactory
、ListableBeanFactory
、MessageSource
、ResourceLoader
、ResourcePatternResolver
- すべての既知のサブインターフェース:
ConfigurableWebServerApplicationContext
- すべての既知の実装クラス:
AnnotationConfigReactiveWebServerApplicationContext
、AnnotationConfigServletWebServerApplicationContext
、ReactiveWebServerApplicationContext
、ServletWebServerApplicationContext
、XmlServletWebServerApplicationContext
WebServer
のライフサイクルを作成および管理する application contexts
によって実装されるインターフェース。- 導入:
- 2.0.0
- 作成者:
- Phillip Webb
フィールドのサマリー
フィールド修飾子と型フィールド説明static final int
Web サーバーの正常なシャットダウンが実行されるSmartLifecycle phase
。static final int
Web サーバーの起動と停止を実行するSmartLifecycle phase
です。インターフェース org.springframework.beans.factory.BeanFactory から継承されたフィールド
FACTORY_BEAN_PREFIX, FACTORY_BEAN_PREFIX_CHAR
インターフェース org.springframework.core.io.ResourceLoader から継承されたフィールド
CLASSPATH_URL_PREFIX
インターフェース org.springframework.core.io.support.ResourcePatternResolver から継承されたフィールド
CLASSPATH_ALL_URL_PREFIX
メソッドのサマリー
修飾子と型メソッド説明@Nullable StringSE
Web サーバーアプリケーションコンテキストの名前空間を返します。名前空間が設定されていない場合はnull
を返します。static @Nullable StringSE
getServerNamespace
(@Nullable ApplicationContext context) 指定されたコンテキストがWebServerApplicationContext
の場合、サーバーの名前空間を返します。@Nullable WebServer
コンテキストによって作成されたWebServer
を返します。サーバーがまだ作成されていない場合はnull
を返します。static boolean
hasServerNamespace
(@Nullable ApplicationContext context, StringSE serverNamespace) 指定されたコンテキストが、一致するサーバー名前空間を持つWebServerApplicationContext
である場合、true
を返します。インターフェース org.springframework.context.ApplicationContext から継承されたメソッド
getApplicationName, getAutowireCapableBeanFactory, getDisplayName, getId, getParent, getStartupDate
インターフェース org.springframework.context.ApplicationEventPublisher から継承されたメソッド
publishEvent, publishEvent
インターフェース org.springframework.beans.factory.BeanFactory から継承されたメソッド
containsBean, getAliases, getBean, getBean, getBean, getBean, getBean, getBeanProvider, getBeanProvider, getType, getType, isPrototype, isSingleton, isTypeMatch, isTypeMatch
インターフェース org.springframework.core.env.EnvironmentCapable から継承されたメソッド
getEnvironment
インターフェース org.springframework.beans.factory.HierarchicalBeanFactory から継承されたメソッド
containsLocalBean, getParentBeanFactory
インターフェース org.springframework.beans.factory.ListableBeanFactory から継承されたメソッド
containsBeanDefinition, findAllAnnotationsOnBean, findAnnotationOnBean, findAnnotationOnBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanNamesForAnnotation, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeanProvider, getBeanProvider, getBeansOfType, getBeansOfType, getBeansWithAnnotation
インターフェース org.springframework.context.MessageSource から継承されたメソッド
getMessage, getMessage, getMessage
インターフェース org.springframework.core.io.ResourceLoader から継承されたメソッド
getClassLoader, getResource
インターフェース org.springframework.core.io.support.ResourcePatternResolver から継承されたメソッド
getResources
フィールドの詳細
GRACEFUL_SHUTDOWN_PHASE
static final int GRACEFUL_SHUTDOWN_PHASEWeb サーバーの正常なシャットダウンが実行されるSmartLifecycle phase
。- 導入:
- 4.0.0
- 関連事項:
START_STOP_LIFECYCLE_PHASE
static final int START_STOP_LIFECYCLE_PHASEWeb サーバーの起動と停止を実行するSmartLifecycle phase
です。- 導入:
- 4.0.0
- 関連事項:
メソッドの詳細
getWebServer
getServerNamespace
@Nullable StringSE getServerNamespace()Web サーバーアプリケーションコンテキストの名前空間を返します。名前空間が設定されていない場合はnull
を返します。同じアプリケーションで複数の Web サーバーが実行されている場合の明確化に使用されます(たとえば、異なるポートで実行されている管理コンテキスト)。- 戻り値:
- サーバーの名前空間
hasServerNamespace
指定されたコンテキストが、一致するサーバー名前空間を持つWebServerApplicationContext
である場合、true
を返します。- パラメーター:
context
- チェックするコンテキストserverNamespace
- 照合するサーバーの名前空間- 戻り値:
- コンテキストのサーバー名前空間が一致する場合は
true
- 導入:
- 2.1.8
getServerNamespace
指定されたコンテキストがWebServerApplicationContext
の場合、サーバーの名前空間を返します。- パラメーター:
context
- コンテキスト- 戻り値:
- サーバーの名前空間、またはコンテキストが
WebServerApplicationContext
でない場合はnull
- 導入:
- 2.6.0