|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.shibboleth.common.config.SpringConfigurationUtils
public final class SpringConfigurationUtils
Utilities to help configure Spring beans.
Method Summary | |
---|---|
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)
Deprecated. |
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<org.opensaml.util.resource.Resource> configurationResources)
Loads a set of spring configuration resources into a given application context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void populateRegistry(org.springframework.beans.factory.support.BeanDefinitionRegistry beanRegistry, List<org.opensaml.util.resource.Resource> configurationResources) throws org.opensaml.util.resource.ResourceException
beanRegistry
- registry of spring beans to be populated with information from the given configurationsconfigurationResources
- list of spring configuration resources
org.opensaml.util.resource.ResourceException
- 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 context
public 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 context
public static org.springframework.beans.factory.config.RuntimeBeanReference parseCustomElement(Element element, org.springframework.beans.factory.xml.ParserContext parserContext)
element
- element to parseparserContext
- current parser context
public 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 context
public 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 context
public 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 context
public 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 conversion
IllegalArgumentException
- thrown if the given duration is either an invalid number or ISO8601 duration or
if the duration is negative
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |