Class ContextConfigurator


  • public class ContextConfigurator
    extends Object
    Configurator class for spring's application context setup.
    Since:
    3.0
    Author:
    Marco Meschieri
    • Constructor Detail

      • ContextConfigurator

        public ContextConfigurator​(String resource)
      • ContextConfigurator

        public ContextConfigurator()
    • Method Detail

      • setProperty

        public void setProperty​(String id,
                                String propertyName,
                                String value)
      • clearPropertyValue

        public void clearPropertyValue​(String id,
                                       String propertyName)
      • addPropertyBeanRefList

        public void addPropertyBeanRefList​(String id,
                                           String propertyName,
                                           List<? extends String> values)
      • getPropertyProp

        public String getPropertyProp​(String id,
                                      String propertyName,
                                      String key)
        Retrieves the prop value of the specified property, that is one inside the <props> tag:

        <property><props><prop key="key_name">key_value</prop></props></property>

        Parameters:
        id - The bean id
        propertyName - The property name
        key - The pop key
        Returns:
        The prop value
      • setPropValue

        public void setPropValue​(String id,
                                 String propertyName,
                                 String key,
                                 String value)
        Sets the prop value of the specified property, that is one inside the <props> tag:

        <property><props><prop key="key_name">key_value</prop></props></property>

        Parameters:
        id - The bean id
        propertyName - The property name
        key - The property key
        value - The property value
      • getDialect

        public String getDialect()
      • write

        public boolean write()
      • addTrigger

        public void addTrigger​(String triggerId)
        Enlists a new trigger in the scheduler
        Parameters:
        triggerId - name of the trigger's bean