public final class SpringConfigurationUtils extends Object
| 修飾子とタイプ | メソッドと説明 |
|---|---|
static org.springframework.beans.factory.config.RuntimeBeanReference |
parseCustomElement(Element element,
org.springframework.beans.factory.xml.ParserContext parserContext)
Parses a bean definition using an xsi:type aware version of
BeanDefinitionParserDelegate.parseCustomElement(Element).
|
static org.springframework.beans.factory.config.RuntimeBeanReference |
parseCustomElement(Element element,
String idAttribute,
org.springframework.beans.factory.xml.ParserContext parserContext)
Parses a bean definition using an xsi:type aware version of
BeanDefinitionParserDelegate.parseCustomElement(Element).
|
static org.springframework.beans.factory.config.RuntimeBeanReference |
parseCustomElementReference(Element element,
String refAttribute,
org.springframework.beans.factory.xml.ParserContext parserContext)
Parses a custom element that is a reference to a bean declared elsewhere.
|
static org.springframework.beans.factory.support.ManagedList |
parseCustomElements(List<Element> elements,
org.springframework.beans.factory.xml.ParserContext parserContext)
Parse list of elements into bean definitions.
|
static org.springframework.beans.factory.support.ManagedList |
parseCustomElements(List<Element> elements,
String idAttribute,
org.springframework.beans.factory.xml.ParserContext parserContext)
Parse list of elements into bean definitions.
|
static long |
parseDurationToMillis(String propertyName,
String duration,
int toMillisFactor)
推奨されていません。
|
static org.springframework.beans.factory.config.BeanDefinition |
parseInnerCustomElement(Element element,
org.springframework.beans.factory.xml.ParserContext parserContext)
Parses a bean definition using an xsi:type aware version of
BeanDefinitionParserDelegate.parseCustomElement(Element). |
static org.springframework.beans.factory.support.ManagedList |
parseInnerCustomElements(List<Element> elements,
org.springframework.beans.factory.xml.ParserContext parserContext)
Parser a list of bean definitions using an xsi:type aware version of
BeanDefinitionParserDelegate.parseCustomElement(Element). |
static void |
populateRegistry(org.springframework.beans.factory.support.BeanDefinitionRegistry beanRegistry,
List<Resource> configurationResources)
Loads a set of spring configuration resources into a given application context.
|
public static void populateRegistry(org.springframework.beans.factory.support.BeanDefinitionRegistry beanRegistry,
List<Resource> configurationResources)
throws ResourceException
beanRegistry - registry of spring beans to be populated with information from the given configurationsconfigurationResources - list of spring configuration resourcesResourceException - thrown if there is a problem reading the spring configuration resources into the
registrypublic static org.springframework.beans.factory.config.BeanDefinition parseInnerCustomElement(Element element, org.springframework.beans.factory.xml.ParserContext parserContext)
BeanDefinitionParserDelegate.parseCustomElement(Element).element - configuration elementparserContext - current parser contextpublic static org.springframework.beans.factory.support.ManagedList parseInnerCustomElements(List<Element> elements, org.springframework.beans.factory.xml.ParserContext parserContext)
BeanDefinitionParserDelegate.parseCustomElement(Element).elements - configuration elementsparserContext - current parser contextpublic static org.springframework.beans.factory.config.RuntimeBeanReference parseCustomElement(Element element, org.springframework.beans.factory.xml.ParserContext parserContext)
element - element to parseparserContext - current parser contextpublic static org.springframework.beans.factory.config.RuntimeBeanReference parseCustomElement(Element element, String idAttribute, org.springframework.beans.factory.xml.ParserContext parserContext)
element - element to parseidAttribute - attribute that carries the unique ID for the beanparserContext - current parser contextpublic static org.springframework.beans.factory.config.RuntimeBeanReference parseCustomElementReference(Element element, String refAttribute, org.springframework.beans.factory.xml.ParserContext parserContext)
element - the element that references the beanrefAttribute - the name of the attribute that contains the referenced bean's nameparserContext - current parsing contextpublic static org.springframework.beans.factory.support.ManagedList parseCustomElements(List<Element> elements, org.springframework.beans.factory.xml.ParserContext parserContext)
elements - list of elements to parseparserContext - current parsing contextpublic static org.springframework.beans.factory.support.ManagedList parseCustomElements(List<Element> elements, String idAttribute, org.springframework.beans.factory.xml.ParserContext parserContext)
elements - list of elements to parseidAttribute - attribute that carries the unique ID for the beanparserContext - current parsing context@Deprecated public static long parseDurationToMillis(String propertyName, String duration, int toMillisFactor) throws IllegalArgumentException
propertyName - Name of the property carrying the duration. This is used in the warning log message if the
duration is in numerical form.duration - the duration to be parsedtoMillisFactor - used to convert a numerical duration to milliseconds, 0 indicates no conversionIllegalArgumentException - thrown if the given duration is either an invalid number or ISO8601 duration or
if the duration is negativeCopyright © 2012. All Rights Reserved.