クラス StaticApplicationContext
java.lang.ObjectSE
org.springframework.core.io.DefaultResourceLoader
org.springframework.context.support.AbstractApplicationContext
org.springframework.context.support.GenericApplicationContext
org.springframework.context.support.StaticApplicationContext
- 実装されているすべてのインターフェース:
CloseableSE, AutoCloseableSE, BeanFactory, HierarchicalBeanFactory, ListableBeanFactory, BeanDefinitionRegistry, ApplicationContext, ApplicationEventPublisher, ConfigurableApplicationContext, Lifecycle, MessageSource, AliasRegistry, EnvironmentCapable, ResourceLoader, ResourcePatternResolver
- 既知の直属サブクラス
StaticWebApplicationContext
外部構成ソースから Bean 定義を読み取るのではなく、Bean およびメッセージのプログラムによる登録をサポートする
ApplicationContext 実装。主にテストに役立ちます。- 作成者:
- Rod Johnson, Juergen Hoeller
- 関連事項:
ネストされたクラスの要約
クラス DefaultResourceLoader から継承されたネストクラス / インターフェース
DefaultResourceLoader.ClassPathContextResourceフィールドのサマリー
クラス AbstractApplicationContext から継承されたフィールド
APPLICATION_EVENT_MULTICASTER_BEAN_NAME, LIFECYCLE_PROCESSOR_BEAN_NAME, logger, MESSAGE_SOURCE_BEAN_NAMEインターフェース BeanFactory から継承されたフィールド
FACTORY_BEAN_PREFIX, FACTORY_BEAN_PREFIX_CHARインターフェース ConfigurableApplicationContext から継承されたフィールド
APPLICATION_STARTUP_BEAN_NAME, BOOTSTRAP_EXECUTOR_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インターフェース ResourceLoader から継承されたフィールド
CLASSPATH_URL_PREFIXインターフェース ResourcePatternResolver から継承されたフィールド
CLASSPATH_ALL_URL_PREFIXコンストラクターの概要
コンストラクターコンストラクター説明新しい StaticApplicationContext を作成します。指定された親を持つ新しい StaticApplicationContext を作成します。メソッドのサマリー
修飾子と型メソッド説明voidaddMessage(StringSE code, LocaleSE locale, StringSE defaultMessage) 指定されたメッセージを指定されたコードに関連付けます。protected voidテストケースに対してより寛大になるように、無効にして何もしないように変更します。final StaticMessageSourceこのコンテキストで使用される内部 StaticMessageSource を返します。voidregisterPrototype(StringSE name, ClassSE<?> clazz) 基になる Bean ファクトリにプロトタイプ Bean を登録します。voidregisterPrototype(StringSE name, ClassSE<?> clazz, MutablePropertyValues pvs) 基になる Bean ファクトリにプロトタイプ Bean を登録します。voidregisterSingleton(StringSE name, ClassSE<?> clazz) 基になる Bean ファクトリにシングルトン Bean を登録します。voidregisterSingleton(StringSE name, ClassSE<?> clazz, MutablePropertyValues pvs) 基になる Bean ファクトリにシングルトン Bean を登録します。クラス GenericApplicationContext から継承されたメソッド
cancelRefresh, closeBeanFactory, getAutowireCapableBeanFactory, getBeanDefinition, getBeanFactory, getClassLoader, getDefaultListableBeanFactory, getResource, getResources, isAlias, isBeanDefinitionOverridable, isBeanNameInUse, refreshBeanFactory, refreshForAotProcessing, register, registerAlias, registerBean, registerBean, registerBean, registerBean, registerBean, registerBean, registerBeanDefinition, removeAlias, removeBeanDefinition, setAllowBeanDefinitionOverriding, setAllowCircularReferences, setApplicationStartup, setClassLoader, setParent, setResourceLoaderクラス AbstractApplicationContext から継承されたメソッド
addApplicationListener, addBeanFactoryPostProcessor, clearResourceCaches, close, containsBean, containsBeanDefinition, containsLocalBean, createEnvironment, destroyBeans, doClose, findAllAnnotationsOnBean, 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, getBeanProvider, getBeansOfType, getBeansOfType, getBeansWithAnnotation, getDisplayName, getEnvironment, getId, getInternalParentBeanFactory, getInternalParentMessageSource, getMessage, getMessage, getMessage, getParent, getParentBeanFactory, getResourcePatternResolver, getStartupDate, getType, getType, initApplicationEventMulticaster, initLifecycleProcessor, initMessageSource, initPropertySources, invokeBeanFactoryPostProcessors, isActive, isClosed, isPrototype, isRunning, isSingleton, isTypeMatch, isTypeMatch, obtainFreshBeanFactory, onClose, onRefresh, pause, postProcessBeanFactory, prepareBeanFactory, prepareRefresh, publishEvent, publishEvent, publishEvent, refresh, registerBeanPostProcessors, registerListeners, registerShutdownHook, removeApplicationListener, resetCommonCaches, restart, setDisplayName, setEnvironment, setId, start, stop, toStringクラス DefaultResourceLoader から継承されたメソッド
addProtocolResolver, getProtocolResolvers, getResourceByPath, getResourceCacheクラス ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, wait, waitSE, waitSEインターフェース AliasRegistry から継承されたメソッド
getAliasesインターフェース BeanDefinitionRegistry から継承されたメソッド
containsBeanDefinition, getBeanDefinitionCount, getBeanDefinitionNamesインターフェース ConfigurableApplicationContext から継承されたメソッド
addProtocolResolver
コンストラクターの詳細
StaticApplicationContext
新しい StaticApplicationContext を作成します。- 例外:
BeansException- 関連事項:
StaticApplicationContext
指定された親を持つ新しい StaticApplicationContext を作成します。- 例外:
BeansException- 関連事項:
メソッドの詳細
assertBeanFactoryActive
protected void assertBeanFactoryActive()テストケースに対してより寛大になるように、無効にして何もしないように変更します。- オーバーライド:
- クラス
AbstractApplicationContextのassertBeanFactoryActive
getStaticMessageSource
このコンテキストで使用される内部 StaticMessageSource を返します。メッセージの登録に使用できます。- 関連事項:
registerSingleton
基になる Bean ファクトリにシングルトン Bean を登録します。より高度なニーズについては、基になる BeanFactory に直接登録してください。
- 例外:
BeansException- 関連事項:
registerSingleton
public void registerSingleton(StringSE name, ClassSE<?> clazz, MutablePropertyValues pvs) throws BeansException 基になる Bean ファクトリにシングルトン Bean を登録します。より高度なニーズについては、基になる BeanFactory に直接登録してください。
- 例外:
BeansException- 関連事項:
registerPrototype
基になる Bean ファクトリにプロトタイプ Bean を登録します。より高度なニーズについては、基になる BeanFactory に直接登録してください。
- 例外:
BeansException- 関連事項:
registerPrototype
public void registerPrototype(StringSE name, ClassSE<?> clazz, MutablePropertyValues pvs) throws BeansException 基になる Bean ファクトリにプロトタイプ Bean を登録します。より高度なニーズについては、基になる BeanFactory に直接登録してください。
- 例外:
BeansException- 関連事項:
addMessage