public class ReactiveWebServerApplicationContext extends GenericReactiveWebApplicationContext
GenericReactiveWebApplicationContext
that can be used to bootstrap itself
from a contained ReactiveWebServerFactory
bean.DefaultResourceLoader.ClassPathContextResource
APPLICATION_EVENT_MULTICASTER_BEAN_NAME, LIFECYCLE_PROCESSOR_BEAN_NAME, logger, MESSAGE_SOURCE_BEAN_NAME
FACTORY_BEAN_PREFIX
CLASSPATH_ALL_URL_PREFIX
CLASSPATH_URL_PREFIX
CONFIG_LOCATION_DELIMITERS, CONVERSION_SERVICE_BEAN_NAME, ENVIRONMENT_BEAN_NAME, LOAD_TIME_WEAVER_BEAN_NAME, SYSTEM_ENVIRONMENT_BEAN_NAME, SYSTEM_PROPERTIES_BEAN_NAME
Constructor and Description |
---|
ReactiveWebServerApplicationContext() |
ReactiveWebServerApplicationContext(Class<?>... annotatedClasses) |
Modifier and Type | Method and Description |
---|---|
protected void |
finishRefresh() |
protected HttpHandler |
getHttpHandler()
Return the
HttpHandler that should be used to process the reactive web
server. |
protected ReactiveWebServerFactory |
getWebServerFactory()
Return the
ReactiveWebServerFactory that should be used to create the
reactive web server. |
protected void |
onClose() |
protected void |
onRefresh() |
void |
refresh() |
getNamespace, getResourceByPath, setNamespace
register, registerBean, registerBean, registerBean, scan, setBeanNameGenerator, setEnvironment, setScopeMetadataResolver
cancelRefresh, closeBeanFactory, getAutowireCapableBeanFactory, getBeanDefinition, getBeanFactory, getClassLoader, getDefaultListableBeanFactory, getResource, getResources, isAlias, isBeanNameInUse, refreshBeanFactory, registerAlias, registerBean, registerBean, registerBean, registerBeanDefinition, removeAlias, removeBeanDefinition, setAllowBeanDefinitionOverriding, setAllowCircularReferences, setClassLoader, setId, setParent, setResourceLoader
addApplicationListener, addBeanFactoryPostProcessor, assertBeanFactoryActive, close, containsBean, containsBeanDefinition, containsLocalBean, createEnvironment, destroy, destroyBeans, doClose, findAnnotationOnBean, finishBeanFactoryInitialization, getAliases, getApplicationListeners, getApplicationName, getBean, getBean, getBean, getBean, getBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanFactoryPostProcessors, getBeanNamesForAnnotation, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType, getBeansWithAnnotation, getDisplayName, getEnvironment, getId, getInternalParentBeanFactory, getInternalParentMessageSource, getMessage, getMessage, getMessage, getParent, getParentBeanFactory, getResourcePatternResolver, getStartupDate, getType, initApplicationEventMulticaster, initLifecycleProcessor, initMessageSource, initPropertySources, invokeBeanFactoryPostProcessors, isActive, isPrototype, isRunning, isSingleton, isTypeMatch, isTypeMatch, obtainFreshBeanFactory, postProcessBeanFactory, prepareBeanFactory, prepareRefresh, publishEvent, publishEvent, publishEvent, registerBeanPostProcessors, registerListeners, registerShutdownHook, resetCommonCaches, setDisplayName, start, stop, toString
addProtocolResolver, clearResourceCaches, getProtocolResolvers, getResourceCache
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getApplicationName, getAutowireCapableBeanFactory, getDisplayName, getId, getParent, getStartupDate
getEnvironment
containsBeanDefinition, findAnnotationOnBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanNamesForAnnotation, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType, getBeansWithAnnotation
containsLocalBean, getParentBeanFactory
containsBean, getAliases, getBean, getBean, getBean, getBean, getBean, getType, isPrototype, isSingleton, isTypeMatch, isTypeMatch
getMessage, getMessage, getMessage
publishEvent, publishEvent
getResources
getClassLoader, getResource
containsBeanDefinition, getBeanDefinitionCount, getBeanDefinitionNames
getAliases
addProtocolResolver
public ReactiveWebServerApplicationContext()
public ReactiveWebServerApplicationContext(Class<?>... annotatedClasses)
public final void refresh() throws BeansException, IllegalStateException
refresh
in interface ConfigurableApplicationContext
refresh
in class AbstractApplicationContext
BeansException
IllegalStateException
protected void onRefresh()
onRefresh
in class AbstractApplicationContext
protected void finishRefresh()
finishRefresh
in class AbstractApplicationContext
protected void onClose()
onClose
in class AbstractApplicationContext
protected ReactiveWebServerFactory getWebServerFactory()
ReactiveWebServerFactory
that should be used to create the
reactive web server. By default this method searches for a suitable bean in the
context itself.ReactiveWebServerFactory
(never null
)protected HttpHandler getHttpHandler()
HttpHandler
that should be used to process the reactive web
server. By default this method searches for a suitable bean in the context itself.HttpHandler
(never null
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.