public interface WebServerApplicationContext extends ApplicationContext
WebServer
のライフサイクルを作成および管理する application contexts
によって実装されるインターフェース。FACTORY_BEAN_PREFIX
CLASSPATH_ALL_URL_PREFIX
CLASSPATH_URL_PREFIX
修飾子と型 | メソッドと説明 |
---|---|
StringSE | getServerNamespace() Web サーバーアプリケーションコンテキストの名前空間を返します。名前空間が設定されていない場合は null を返します。 |
static StringSE | getServerNamespace(ApplicationContext context) 指定されたコンテキストが WebServerApplicationContext の場合、サーバーの名前空間を返します。 |
WebServer | getWebServer() コンテキストによって作成された WebServer を返します。サーバーがまだ作成されていない場合は null を返します。 |
static boolean | hasServerNamespace(ApplicationContext context, StringSE serverNamespace) 指定されたコンテキストが、一致するサーバー名前空間を持つ WebServerApplicationContext である場合、true を返します。 |
getApplicationName, getAutowireCapableBeanFactory, getDisplayName, getId, getParent, getStartupDate
getEnvironment
containsBeanDefinition, findAnnotationOnBean, findAnnotationOnBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanNamesForAnnotation, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeanProvider, getBeanProvider, getBeansOfType, getBeansOfType, getBeansWithAnnotation
containsLocalBean, getParentBeanFactory
containsBean, getAliases, getBean, getBean, getBean, getBean, getBean, getBeanProvider, getBeanProvider, getType, getType, isPrototype, isSingleton, isTypeMatch, isTypeMatch
getMessage, getMessage, getMessage
publishEvent, publishEvent
getResources
getClassLoader, getResource
WebServer getWebServer()
WebServer
を返します。サーバーがまだ作成されていない場合は null
を返します。StringSE getServerNamespace()
null
を返します。同じアプリケーションで複数の Web サーバーが実行されている場合の明確化に使用されます(たとえば、異なるポートで実行されている管理コンテキスト)。static boolean hasServerNamespace(ApplicationContext context, StringSE serverNamespace)
WebServerApplicationContext
である場合、true
を返します。context
- チェックするコンテキスト serverNamespace
- 照合するサーバーの名前空間 true
static StringSE getServerNamespace(ApplicationContext context)
WebServerApplicationContext
の場合、サーバーの名前空間を返します。context
- コンテキスト WebServerApplicationContext
でない場合は null