public class ReactiveWebServerApplicationContext extends GenericReactiveWebApplicationContext implements ConfigurableWebServerApplicationContext
ReactiveWebServerFactory
Bean からブートストラップするために使用できる GenericReactiveWebApplicationContext
。DefaultResourceLoader.ClassPathContextResource
APPLICATION_EVENT_MULTICASTER_BEAN_NAME, LIFECYCLE_PROCESSOR_BEAN_NAME, logger, MESSAGE_SOURCE_BEAN_NAME
APPLICATION_STARTUP_BEAN_NAME, CONFIG_LOCATION_DELIMITERS, CONVERSION_SERVICE_BEAN_NAME, ENVIRONMENT_BEAN_NAME, LOAD_TIME_WEAVER_BEAN_NAME, SHUTDOWN_HOOK_THREAD_NAME, SYSTEM_ENVIRONMENT_BEAN_NAME, SYSTEM_PROPERTIES_BEAN_NAME
FACTORY_BEAN_PREFIX
CLASSPATH_ALL_URL_PREFIX
CLASSPATH_URL_PREFIX
コンストラクターと説明 |
---|
ReactiveWebServerApplicationContext() 新しい ReactiveWebServerApplicationContext を作成します。 |
ReactiveWebServerApplicationContext(DefaultListableBeanFactory beanFactory) 指定された DefaultListableBeanFactory で新しい ReactiveWebServerApplicationContext を作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
protected void | doClose() |
protected HttpHandler | getHttpHandler() リアクティブ Web サーバーの処理に使用する HttpHandler を返します。 |
StringSE | getServerNamespace() Web サーバーアプリケーションコンテキストの名前空間を返します。名前空間が設定されていない場合は null を返します。 |
WebServer | getWebServer() コンテキストによって作成された WebServer を返します。サーバーがまだ作成されていない場合は null を返します。 |
protected ReactiveWebServerFactory | getWebServerFactory(StringSE factoryBeanName) |
protected StringSE | getWebServerFactoryBeanName() |
protected void | onRefresh() |
void | refresh() |
void | setServerNamespace(StringSE serverNamespace) コンテキストのサーバー名前空間を設定します。 |
createEnvironment, getResourceByPath
cancelRefresh, closeBeanFactory, getAutowireCapableBeanFactory, getBeanDefinition, getBeanFactory, getClassLoader, getDefaultListableBeanFactory, getResource, getResources, isAlias, isBeanNameInUse, refreshBeanFactory, registerAlias, registerBean, registerBean, registerBean, registerBean, registerBean, registerBean, registerBeanDefinition, removeAlias, removeBeanDefinition, setAllowBeanDefinitionOverriding, setAllowCircularReferences, setApplicationStartup, setClassLoader, setParent, setResourceLoader
addApplicationListener, addBeanFactoryPostProcessor, assertBeanFactoryActive, close, containsBean, containsBeanDefinition, containsLocalBean, destroy, destroyBeans, findAnnotationOnBean, findAnnotationOnBean, finishBeanFactoryInitialization, finishRefresh, getAliases, getApplicationListeners, getApplicationName, getApplicationStartup, getBean, getBean, getBean, getBean, getBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanFactoryPostProcessors, getBeanNamesForAnnotation, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeanProvider, getBeanProvider, getBeanProvider, getBeanProvider, getBeansOfType, getBeansOfType, getBeansWithAnnotation, getDisplayName, getEnvironment, getId, getInternalParentBeanFactory, getInternalParentMessageSource, getMessage, getMessage, getMessage, getParent, getParentBeanFactory, getResourcePatternResolver, getStartupDate, getType, getType, initApplicationEventMulticaster, initLifecycleProcessor, initMessageSource, initPropertySources, invokeBeanFactoryPostProcessors, isActive, isPrototype, isRunning, isSingleton, isTypeMatch, isTypeMatch, obtainFreshBeanFactory, onClose, postProcessBeanFactory, prepareBeanFactory, prepareRefresh, publishEvent, publishEvent, publishEvent, registerBeanPostProcessors, registerListeners, registerShutdownHook, resetCommonCaches, setDisplayName, setEnvironment, setId, start, stop, toString
addProtocolResolver, clearResourceCaches, getProtocolResolvers, getResourceCache
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, waitSE, waitSE, waitSE
addApplicationListener, addBeanFactoryPostProcessor, addProtocolResolver, close, getApplicationStartup, getBeanFactory, getEnvironment, isActive, registerShutdownHook, setApplicationStartup, setClassLoader, setEnvironment, setId, setParent
getServerNamespace, hasServerNamespace
getApplicationName, getAutowireCapableBeanFactory, getDisplayName, getId, getParent, getStartupDate
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
containsBeanDefinition, getBeanDefinitionCount, getBeanDefinitionNames
getAliases
public ReactiveWebServerApplicationContext()
ReactiveWebServerApplicationContext
を作成します。public ReactiveWebServerApplicationContext(DefaultListableBeanFactory beanFactory)
DefaultListableBeanFactory
で新しい ReactiveWebServerApplicationContext
を作成します。beanFactory
- このコンテキストに使用する DefaultListableBeanFactory インスタンス public final void refresh() throws BeansException, IllegalStateExceptionSE
ConfigurableApplicationContext
の refresh
AbstractApplicationContext
の refresh
BeansException
IllegalStateExceptionSE
protected void onRefresh()
AbstractApplicationContext
の onRefresh
protected StringSE getWebServerFactoryBeanName()
protected ReactiveWebServerFactory getWebServerFactory(StringSE factoryBeanName)
protected HttpHandler getHttpHandler()
HttpHandler
を返します。デフォルトでは、このメソッドはコンテキスト自体で適切な Bean を検索します。HttpHandler
(非 null
protected void doClose()
AbstractApplicationContext
の doClose
public WebServer getWebServer()
WebServer
を返します。サーバーがまだ作成されていない場合は null
を返します。WebServerApplicationContext
の getWebServer
public StringSE getServerNamespace()
WebServerApplicationContext
null
を返します。同じアプリケーションで複数の Web サーバーが実行されている場合の明確化に使用されます(たとえば、異なるポートで実行されている管理コンテキスト)。WebServerApplicationContext
の getServerNamespace
public void setServerNamespace(StringSE serverNamespace)
ConfigurableWebServerApplicationContext
ConfigurableWebServerApplicationContext
の setServerNamespace
serverNamespace
- サーバーの名前空間 WebServerApplicationContext.getServerNamespace()