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