public class GenericGroovyXmlContextLoader extends GenericXmlContextLoader
AbstractGenericContextLoader
の具体的な実装。 デフォルトのリソースの場所は、サフィックス "-context.xml"
および "Context.groovy"
を使用して検出されます。
GroovyBeanDefinitionReader
, GenericXmlContextLoader
, AnnotationConfigContextLoader
logger
コンストラクターと説明 |
---|
GenericGroovyXmlContextLoader() |
修飾子と型 | メソッドと説明 |
---|---|
protected StringSE | getResourceSuffix() GenericGroovyXmlContextLoader は、デフォルトの検出のために Groovy と XML の両方のリソース型をサポートします。 |
protected StringSE[] | getResourceSuffixes() デフォルトの XML 構成ファイルまたは Groovy スクリプトの検出をサポートするために、 "-context.xml" および "Context.groovy" を返します。 |
protected void | loadBeanDefinitions(GenericApplicationContext context, MergedContextConfiguration mergedConfig) GroovyBeanDefinitionReader を使用して、提供された MergedContextConfiguration の場所から提供された context に Bean 定義をロードします。 |
createBeanDefinitionReader, validateMergedContextConfiguration
createContext, customizeBeanFactory, customizeContext, loadContext, loadContext, prepareContext
customizeContext, generateDefaultLocations, isGenerateDefaultLocations, modifyLocations, prepareContext, processContextConfiguration, processLocations
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
protected void loadBeanDefinitions(GenericApplicationContext context, MergedContextConfiguration mergedConfig)
GroovyBeanDefinitionReader
を使用して、提供された MergedContextConfiguration
の場所から提供された context
に Bean 定義をロードします。AbstractGenericContextLoader
の loadBeanDefinitions
context
- Bean 定義をロードする必要があるコンテキスト mergedConfig
- マージされたコンテキスト構成 AbstractGenericContextLoader.loadBeanDefinitions(org.springframework.context.support.GenericApplicationContext, org.springframework.test.context.MergedContextConfiguration)
protected StringSE[] getResourceSuffixes()
"-context.xml"
および "Context.groovy"
を返します。AbstractContextLoader
の getResourceSuffixes
null
または空にしない AbstractContextLoader.generateDefaultLocations(Class)
protected StringSE getResourceSuffix()
GenericGroovyXmlContextLoader
は、デフォルトの検出のために Groovy と XML の両方のリソース型をサポートします。このメソッドはサポートされていません。GenericXmlContextLoader
の getResourceSuffix
null
または空にしない UnsupportedOperationExceptionSE
- この実装 getResourceSuffixes()