Class 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 Detail

      • SpringUtils

        private SpringUtils()
        Constructor. It is private so that no instances can be created.
    • 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).