public final class SpringSupport extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) static org.slf4j.Logger |
LOG
Logger.
|
static QName |
SPRING_BEANS_ELEMENT_NAME
Spring beans element name.
|
| Modifier | Constructor and Description |
|---|---|
private |
SpringSupport()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static org.springframework.beans.factory.BeanFactory |
createBeanFactory(Element springBeans)
Creates a Spring bean factory from the supplied Spring beans element.
|
static org.springframework.beans.factory.support.AbstractBeanDefinition |
getAttributeValueAsList(Attr attribute)
Gets the value of a list-type attribute as a
BeanDefinitionBuilder. |
static org.springframework.beans.factory.support.ManagedList<String> |
getAttributeValueAsManagedList(Attr attribute)
Deprecated.
|
static <T> T |
getBean(org.springframework.beans.factory.BeanFactory beanFactory,
Class<T> clazz)
Retrieves the bean of the supplied type from the supplied bean factory.
|
static org.springframework.beans.factory.support.ManagedList<String> |
getElementTextContentAsManagedList(Collection<Element> elements)
Gets the text content of a list of
Elements as a ManagedList. |
static org.springframework.context.support.GenericApplicationContext |
newContext(String name,
List<org.springframework.core.io.Resource> configurationResources,
List<org.springframework.beans.factory.config.BeanFactoryPostProcessor> factoryPostProcessors,
List<org.springframework.beans.factory.config.BeanPostProcessor> postProcessors,
List<org.springframework.context.ApplicationContextInitializer> initializers,
org.springframework.context.ApplicationContext parentContext)
Deprecated.
|
static org.springframework.beans.factory.config.BeanDefinition |
parseCustomElement(Element element,
org.springframework.beans.factory.xml.ParserContext parserContext)
Parse an element into a bean definition.
|
static org.springframework.beans.factory.support.ManagedList<org.springframework.beans.factory.config.BeanDefinition> |
parseCustomElements(Collection<Element> elements,
org.springframework.beans.factory.xml.ParserContext parserContext)
Parse list of elements into bean definitions.
|
static void |
parseNativeElement(Element springBeans,
org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
Parse the provided Element into the provided registry.
|
@Nonnull public static final QName SPRING_BEANS_ELEMENT_NAME
@Nonnull static final org.slf4j.Logger LOG
@Deprecated @Nonnull public static org.springframework.context.support.GenericApplicationContext newContext(@Nonnull @NotEmpty String name, @Nonnull @NonnullElements List<org.springframework.core.io.Resource> configurationResources, @Nonnull @NonnullElements List<org.springframework.beans.factory.config.BeanFactoryPostProcessor> factoryPostProcessors, @Nonnull @NonnullElements List<org.springframework.beans.factory.config.BeanPostProcessor> postProcessors, @Nonnull @NonnullElements List<org.springframework.context.ApplicationContextInitializer> initializers, @Nullable org.springframework.context.ApplicationContext parentContext)
ApplicationContextBuildername - name of the application contextconfigurationResources - configuration resourcesfactoryPostProcessors - post processors to injectpostProcessors - post processors to injectinitializers - application context initializersparentContext - parent context, or null if there is no parent@Nullable public static org.springframework.beans.factory.support.ManagedList<org.springframework.beans.factory.config.BeanDefinition> parseCustomElements(@Nullable @NonnullElements Collection<Element> elements, @Nonnull org.springframework.beans.factory.xml.ParserContext parserContext)
elements - list of elements to parseparserContext - current parsing context@Nullable public static org.springframework.beans.factory.config.BeanDefinition parseCustomElement(@Nullable Element element, @Nonnull org.springframework.beans.factory.xml.ParserContext parserContext)
element - the element to parseparserContext - current parsing contextpublic static void parseNativeElement(@Nonnull Element springBeans, @Nullable org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
springBeans - the element to parseregistry - the registry to populate@Nonnull public static org.springframework.beans.factory.BeanFactory createBeanFactory(@Nonnull Element springBeans)
springBeans - to create bean factory from@Nullable public static <T> T getBean(@Nonnull org.springframework.beans.factory.BeanFactory beanFactory, @Nonnull Class<T> clazz)
T - type of bean to returnbeanFactory - to get the bean fromclazz - type of the bean to retrieve@Nonnull @Deprecated public static org.springframework.beans.factory.support.ManagedList<String> getAttributeValueAsManagedList(@Nullable Attr attribute)
getAttributeValueAsList(Attr)ManagedList.attribute - attribute whose value will be turned into a list@Nonnull public static org.springframework.beans.factory.support.AbstractBeanDefinition getAttributeValueAsList(@Nullable Attr attribute)
BeanDefinitionBuilder.attribute - attribute whose value will be turned into a list@Nonnull public static org.springframework.beans.factory.support.ManagedList<String> getElementTextContentAsManagedList(@Nullable Collection<Element> elements)
Elements as a ManagedList.elements - the elements whose values will be turned into a listCopyright © 1999–2019 Shibboleth Consortium. All rights reserved.