org.marketcetera.util.spring
Class SpringUtils

java.lang.Object
  extended by org.marketcetera.util.spring.SpringUtils

public final class SpringUtils
extends Object

Utilities for the Spring framework.

Since:
0.5.0
Version:
$Id: SpringUtils.java 16154 2012-07-14 16:34:05Z colin $
Author:
tlerios@marketcetera.com

Method Summary
static void addPropertiesConfigurer(GenericApplicationContext context, String configurerName, String locationRef)
          Creates a preferences configurer bean in the given application context.
static void addStringBean(GenericApplicationContext context, String name, String value)
          Creates a string bean in the given application context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addStringBean

public static void addStringBean(GenericApplicationContext 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(GenericApplicationContext context,
                                           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:
context - 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).


Copyright © 2012. All Rights Reserved.