Interface WebServerApplicationContext
- All Superinterfaces:
org.springframework.context.ApplicationContext
,org.springframework.context.ApplicationEventPublisher
,org.springframework.beans.factory.BeanFactory
,org.springframework.core.env.EnvironmentCapable
,org.springframework.beans.factory.HierarchicalBeanFactory
,org.springframework.beans.factory.ListableBeanFactory
,org.springframework.context.MessageSource
,org.springframework.core.io.ResourceLoader
,org.springframework.core.io.support.ResourcePatternResolver
- All Known Subinterfaces:
ConfigurableWebServerApplicationContext
- All Known Implementing Classes:
AnnotationConfigReactiveWebServerApplicationContext
,AnnotationConfigServletWebServerApplicationContext
,ReactiveWebServerApplicationContext
,ServletWebServerApplicationContext
,XmlServletWebServerApplicationContext
public interface WebServerApplicationContext extends org.springframework.context.ApplicationContext
Interface to be implemented byapplication contexts
that create and manage the lifecycle of an embeddedWebServer
.- Since:
- 2.0.0
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getServerNamespace()
Returns the namespace of the web server application context ornull
if no namespace has been set.WebServer
getWebServer()
Returns theWebServer
that was created by the context ornull
if the server has not yet been created.Methods inherited from interface org.springframework.context.ApplicationContext
getApplicationName, getAutowireCapableBeanFactory, getDisplayName, getId, getParent, getStartupDate
Methods inherited from interface org.springframework.context.ApplicationEventPublisher
publishEvent, publishEvent
Methods inherited from interface org.springframework.beans.factory.BeanFactory
containsBean, getAliases, getBean, getBean, getBean, getBean, getBean, getBeanProvider, getBeanProvider, getType, isPrototype, isSingleton, isTypeMatch, isTypeMatch
Methods inherited from interface org.springframework.beans.factory.HierarchicalBeanFactory
containsLocalBean, getParentBeanFactory
Methods inherited from interface org.springframework.beans.factory.ListableBeanFactory
containsBeanDefinition, findAnnotationOnBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanNamesForAnnotation, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType, getBeansWithAnnotation
Methods inherited from interface org.springframework.context.MessageSource
getMessage, getMessage, getMessage
Method Detail
getWebServer
WebServer getWebServer()
Returns theWebServer
that was created by the context ornull
if the server has not yet been created.- Returns:
- the web server
getServerNamespace
String getServerNamespace()
Returns the namespace of the web server application context ornull
if no namespace has been set. Used for disambiguation when multiple web servers are running in the same application (for example a management context running on a different port).- Returns:
- the server namespace