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 void
addPropertyBeanRefList(String id, String propertyName, List<? extends String> values)
void
addTrigger(String triggerId)
Enlists a new trigger in the schedulervoid
clearPropertyValue(String id, String propertyName)
String
getDialect()
String
getProperty(String id, String propertyName)
String
getPropertyProp(String id, String propertyName, String key)
Retrieves the prop value of the specified property, that is one inside the <props> tag:void
setProperty(String id, String propertyName, String value)
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:boolean
write()
-
-
-
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
-
-