クラス 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
- 関連事項:
ネストされたクラスのサマリー
クラス org.springframework.core.io.DefaultResourceLoader から継承されたネストクラス / インターフェース
DefaultResourceLoader.ClassPathContextResource
フィールドのサマリー
クラス org.springframework.context.support.AbstractApplicationContext から継承されたフィールド
APPLICATION_EVENT_MULTICASTER_BEAN_NAME, LIFECYCLE_PROCESSOR_BEAN_NAME, logger, MESSAGE_SOURCE_BEAN_NAME
インターフェース org.springframework.beans.factory.BeanFactory から継承されたフィールド
FACTORY_BEAN_PREFIX, FACTORY_BEAN_PREFIX_CHAR
インターフェース org.springframework.context.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
インターフェース org.springframework.core.io.ResourceLoader から継承されたフィールド
CLASSPATH_URL_PREFIX
インターフェース org.springframework.core.io.support.ResourcePatternResolver から継承されたフィールド
CLASSPATH_ALL_URL_PREFIX
コンストラクターの概要
コンストラクターコンストラクター説明新しい StaticApplicationContext を作成します。指定された親を持つ新しい StaticApplicationContext を作成します。メソッドのサマリー
修飾子と型メソッド説明void
addMessage
(StringSE code, LocaleSE locale, StringSE defaultMessage) 指定されたメッセージを指定されたコードに関連付けます。protected void
テストケースに対してより寛大になるように、無効にして何もしないように変更します。final StaticMessageSource
このコンテキストで使用される内部 StaticMessageSource を返します。void
registerPrototype
(StringSE name, ClassSE<?> clazz) 基になる Bean ファクトリにプロトタイプ Bean を登録します。void
registerPrototype
(StringSE name, ClassSE<?> clazz, MutablePropertyValues pvs) 基になる Bean ファクトリにプロトタイプ Bean を登録します。void
registerSingleton
(StringSE name, ClassSE<?> clazz) 基になる Bean ファクトリにシングルトン Bean を登録します。void
registerSingleton
(StringSE name, ClassSE<?> clazz, MutablePropertyValues pvs) 基になる Bean ファクトリにシングルトン Bean を登録します。クラス org.springframework.context.support.GenericApplicationContext から継承されたメソッド
cancelRefresh, closeBeanFactory, getAutowireCapableBeanFactory, getBeanDefinition, getBeanFactory, getClassLoader, getDefaultListableBeanFactory, getResource, getResources, isAlias, isBeanDefinitionOverridable, isBeanNameInUse, refreshBeanFactory, refreshForAotProcessing, registerAlias, registerBean, registerBean, registerBean, registerBean, registerBean, registerBean, registerBeanDefinition, removeAlias, removeBeanDefinition, setAllowBeanDefinitionOverriding, setAllowCircularReferences, setApplicationStartup, setClassLoader, setParent, setResourceLoader
クラス org.springframework.context.support.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, 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, postProcessBeanFactory, prepareBeanFactory, prepareRefresh, publishEvent, publishEvent, publishEvent, refresh, registerBeanPostProcessors, registerListeners, registerShutdownHook, removeApplicationListener, resetCommonCaches, setDisplayName, setEnvironment, setId, start, stop, toString
クラス org.springframework.core.io.DefaultResourceLoader から継承されたメソッド
addProtocolResolver, getProtocolResolvers, getResourceByPath, getResourceCache
クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, wait, waitSE, waitSE
インターフェース org.springframework.core.AliasRegistry から継承されたメソッド
getAliases
インターフェース org.springframework.beans.factory.support.BeanDefinitionRegistry から継承されたメソッド
containsBeanDefinition, getBeanDefinitionCount, getBeanDefinitionNames
インターフェース org.springframework.context.ConfigurableApplicationContext から継承されたメソッド
addProtocolResolver
コンストラクターの詳細
StaticApplicationContext
新しい StaticApplicationContext を作成します。StaticApplicationContext
指定された親を持つ新しい StaticApplicationContext を作成します。
メソッドの詳細
assertBeanFactoryActive
protected void assertBeanFactoryActive()テストケースに対してより寛大になるように、無効にして何もしないように変更します。- オーバーライド:
- クラス
AbstractApplicationContext
のassertBeanFactoryActive
getStaticMessageSource
このコンテキストで使用される内部 StaticMessageSource を返します。メッセージの登録に使用できます。registerSingleton
基になる Bean ファクトリにシングルトン Bean を登録します。より高度なニーズについては、基になる BeanFactory に直接登録してください。
registerSingleton
public void registerSingleton(StringSE name, ClassSE<?> clazz, MutablePropertyValues pvs) throws BeansException 基になる Bean ファクトリにシングルトン Bean を登録します。より高度なニーズについては、基になる BeanFactory に直接登録してください。
registerPrototype
基になる Bean ファクトリにプロトタイプ Bean を登録します。より高度なニーズについては、基になる BeanFactory に直接登録してください。
registerPrototype
public void registerPrototype(StringSE name, ClassSE<?> clazz, MutablePropertyValues pvs) throws BeansException 基になる Bean ファクトリにプロトタイプ Bean を登録します。より高度なニーズについては、基になる BeanFactory に直接登録してください。
addMessage
指定されたメッセージを指定されたコードに関連付けます。- パラメーター:
code
- ルックアップコードlocale
- ロケールメッセージはdefaultMessage
- このルックアップコードに関連付けられたメッセージ- 関連事項: