Package com.logicaldoc.util.config
Class ContextConfigurator
- java.lang.Object
-
- com.logicaldoc.util.config.ContextConfigurator
-
public class ContextConfigurator extends Object
Configurator class for spring's application context setup.- Since:
- 3.0
- Author:
- Marco Meschieri
-
-
Constructor Summary
Constructors Constructor Description ContextConfigurator()ContextConfigurator(String resource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPropertyBeanRefList(String id, String propertyName, List<? extends String> values)voidaddTrigger(String triggerId)Enlists a new trigger in the schedulervoidclearPropertyValue(String id, String propertyName)StringgetDialect()StringgetProperty(String id, String propertyName)StringgetPropertyProp(String id, String propertyName, String key)Retrieves the prop value of the specified property, that is one inside the <props> tag:voidsetProperty(String id, String propertyName, String value)voidsetPropValue(String id, String propertyName, String key, String value)Sets the prop value of the specified property, that is one inside the <props> tag:booleanwrite()
-
-
-
Constructor Detail
-
ContextConfigurator
public ContextConfigurator(String resource)
-
ContextConfigurator
public ContextConfigurator()
-
-
Method Detail
-
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 idpropertyName- The property namekey- 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 idpropertyName- The property namekey- The property keyvalue- 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
-
-