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
CONFIG_LOCATION_DELIMITERS, CONVERSION_SERVICE_BEAN_NAME, ENVIRONMENT_BEAN_NAME, LOAD_TIME_WEAVER_BEAN_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 | finishRefresh() |
protected HttpHandler | getHttpHandler() リアクティブ Web サーバーの処理に使用する HttpHandler を返します。 |
StringSE | getServerNamespace() Web サーバーアプリケーションコンテキストの名前空間を返します。名前空間が設定されていない場合は null を返します。 |
WebServer | getWebServer() コンテキストによって作成された WebServer を返します。サーバーがまだ作成されていない場合は null を返します。 |
protected ReactiveWebServerFactory | getWebServerFactory() リアクティブ Web サーバーの作成に使用する ReactiveWebServerFactory を返します。 |
protected void | onClose() |
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, registerBeanDefinition, removeAlias, removeBeanDefinition, setAllowBeanDefinitionOverriding, setAllowCircularReferences, setClassLoader, setParent, setResourceLoader
addApplicationListener, addBeanFactoryPostProcessor, assertBeanFactoryActive, close, containsBean, containsBeanDefinition, containsLocalBean, destroy, destroyBeans, doClose, findAnnotationOnBean, finishBeanFactoryInitialization, getAliases, getApplicationListeners, getApplicationName, getBean, getBean, getBean, getBean, getBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanFactoryPostProcessors, getBeanNamesForAnnotation, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeanProvider, getBeanProvider, 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, setEnvironment, setId, start, stop, toString
addProtocolResolver, clearResourceCaches, getProtocolResolvers, getResourceCache
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, waitSE, waitSE, waitSE
addApplicationListener, addBeanFactoryPostProcessor, addProtocolResolver, close, getBeanFactory, getEnvironment, isActive, registerShutdownHook, setEnvironment, setId, setParent
getApplicationName, getAutowireCapableBeanFactory, getDisplayName, getId, getParent, getStartupDate
containsBeanDefinition, findAnnotationOnBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanNamesForAnnotation, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType, getBeansWithAnnotation
containsLocalBean, getParentBeanFactory
containsBean, getAliases, getBean, getBean, getBean, getBean, getBean, getBeanProvider, getBeanProvider, 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 ReactiveWebServerFactory getWebServerFactory()
ReactiveWebServerFactory
を返します。デフォルトでは、このメソッドはコンテキスト自体で適切な Bean を検索します。ReactiveWebServerFactory
(非 null
)protected void finishRefresh()
AbstractApplicationContext
の finishRefresh
protected HttpHandler getHttpHandler()
HttpHandler
を返します。デフォルトでは、このメソッドはコンテキスト自体で適切な Bean を検索します。HttpHandler
(非 null
protected void onClose()
AbstractApplicationContext
の onClose
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()
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.