Package org.marketcetera.util.spring
Class SpringUtils
- java.lang.Object
-
- org.marketcetera.util.spring.SpringUtils
-
public final class SpringUtils extends Object
Utilities for the Spring framework.- Since:
- 0.5.0
- Version:
- $Id: SpringUtils.java 16841 2014-02-20 19:59:04Z colin $
- Author:
- tlerios@marketcetera.com
-
-
Constructor Summary
Constructors Modifier Constructor Description privateSpringUtils()Constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddPropertiesConfigurer(org.springframework.beans.factory.support.BeanDefinitionRegistry inRegistry, String configurerName, String locationRef)Creates a preferences configurer bean in the given application context.static voidaddStringBean(org.springframework.beans.factory.support.BeanDefinitionRegistry context, String name, String value)Creates a string bean in the given application context.
-
-
-
Method Detail
-
addStringBean
public static void addStringBean(org.springframework.beans.factory.support.BeanDefinitionRegistry context, String name, String value)Creates a string bean in the given application context. The new bean has the given name and contains the given text value.- Parameters:
context- The context.name- The bean name.value- The text value.
-
addPropertiesConfigurer
public static void addPropertiesConfigurer(org.springframework.beans.factory.support.BeanDefinitionRegistry inRegistry, String configurerName, String locationRef)Creates a preferences configurer bean in the given application context. The new bean has the given name and refers to another bean with another given name for the properties' locations.- Parameters:
inRegistry- The context.configurerName- The bean name.locationRef- The name of the bean whose value is the properties' locations (can be a string or a list).
-
-