|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pt.digitalis.utils.config.BaseConfigurationsImpl
public abstract class BaseConfigurationsImpl
A facilitator base implementation for IConfigurations. It implements the recurrent needs of these implementations allowing the descending classes to focus only on what is specific to each implementation.
Constructor Summary | |
---|---|
BaseConfigurationsImpl()
|
Method Summary | ||
---|---|---|
|
readConfiguration(Class<T> clazz)
Reads configurations from the persistence layer. |
|
abstract Properties |
readConfiguration(String configID,
String sectionID)
Reads configurations from the persistence layer |
|
|
readConfiguration(String configID,
String sectionID,
Class<T> clazz)
Reads configurations from the persistence layer. |
|
boolean |
removeConfiguration(Object bean)
Removes configurations from the persistence layer. |
|
boolean |
writeConfiguration(Object annotatedPojo)
Writes configurations to the persistence layer. |
|
boolean |
writeConfiguration(String configID,
String sectionID,
Object bean)
Writes configurations to the persistence layer. |
|
abstract boolean |
writeConfiguration(String configID,
String sectionID,
Properties values)
Writes configurations to the persistence layer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface pt.digitalis.utils.config.IConfigurations |
---|
removeConfiguration |
Constructor Detail |
---|
public BaseConfigurationsImpl()
Method Detail |
---|
public abstract boolean writeConfiguration(String configID, String sectionID, Properties values)
IConfigurations
writeConfiguration
in interface IConfigurations
configID
- the identifier of the configuration groupsectionID
- the identifier of the section within the groupvalues
- a Properties object with the key value pairs
IConfigurations.writeConfiguration(java.lang.String, java.lang.String,
java.util.Properties)
public abstract Properties readConfiguration(String configID, String sectionID)
IConfigurations
readConfiguration
in interface IConfigurations
configID
- the identifier of the configuration groupsectionID
- the identifier of the section within the group
IConfigurations.readConfiguration(java.lang.String, java.lang.String)
public <T> T readConfiguration(String configID, String sectionID, Class<T> clazz)
IConfigurations
readConfiguration
in interface IConfigurations
T
- the Type to createconfigID
- the identifier of the configuration groupsectionID
- the identifier of the section within the groupclazz
- the class that defines the object that represents the properties to read
IConfigurations.readConfiguration(java.lang.String, java.lang.String,
java.lang.Class)
public <T> T readConfiguration(Class<T> clazz)
IConfigurations
readConfiguration
in interface IConfigurations
T
- the Type to createclazz
- the class that defines the object that represents the properties to read
IConfigurations.readConfiguration(java.lang.Class)
public boolean writeConfiguration(String configID, String sectionID, Object bean)
IConfigurations
writeConfiguration
in interface IConfigurations
configID
- the identifier of the configuration groupsectionID
- the identifier of the section within the groupbean
- the object (JavaBean) that will be read and saved
IConfigurations.writeConfiguration(java.lang.String, java.lang.String,
java.lang.Object)
public boolean writeConfiguration(Object annotatedPojo) throws Exception
IConfigurations
writeConfiguration
in interface IConfigurations
annotatedPojo
- the annotated class object with the values to be saved
Exception
- if the bean class is not foundIConfigurations.writeConfiguration(java.lang.Object)
public boolean removeConfiguration(Object bean) throws Exception
IConfigurations
removeConfiguration
in interface IConfigurations
bean
- the object (JavaBean) that will be read and saved
Exception
- if the return object cannot be createdIConfigurations.removeConfiguration(java.lang.Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |