|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IConfigurations
Interface that provides a common interface for configuration persistence purposes. It provides a structure for configurations in the following form: configID -> sectionID -> List of "key = value"
Method Summary | ||
---|---|---|
Map<String,Class<?>> |
getCacheConfigurationPoints()
Returns the previously cached configuration points. |
|
List<ConfigItem> |
getConfigItemsMap(Class<?> clazz)
The list of the methods and keys read from the ConfigKeyID annotated methods or other getters as long as not ConfigIgnore annotated. |
|
String |
getGeneralPrefix()
|
|
void |
readAllConfigurationsPoints()
Parses all classes for configuration points and build a map of all configurations found |
|
|
readConfiguration(Class<T> clazz)
Reads configurations from the persistence layer. |
|
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. |
|
Map<String,String> |
readConfigurationAsMap(String configID,
String sectionID)
Reads configurations from the persistence layer |
|
void |
readConfigurationsPointsForPackage(String basePackage)
Parses all classes of the given package for configuration points and build a map of all configurations found |
|
boolean |
removeConfiguration(Object bean)
Removes configurations from the persistence layer. |
|
boolean |
removeConfiguration(String configID,
String sectionID)
Removes configurations from the persistence layer |
|
boolean |
writeConfiguration(String configID,
String sectionID,
Object bean)
Writes configurations to the persistence layer. |
|
boolean |
writeConfiguration(String configID,
String sectionID,
Properties values)
Writes configurations to the persistence layer |
|
|
writeConfiguration(T annotatedPojo)
Writes configurations to the persistence layer. |
|
boolean |
writeConfigurationFromMap(String configID,
String sectionID,
Map<String,String> values)
Writes configurations to the persistence layer |
Method Detail |
---|
Map<String,Class<?>> getCacheConfigurationPoints()
List<ConfigItem> getConfigItemsMap(Class<?> clazz)
clazz
- the class to parse
String getGeneralPrefix()
void readAllConfigurationsPoints()
<T> T readConfiguration(Class<T> clazz)
T
- the Type to createclazz
- the class that defines the object that represents the properties to read
Properties readConfiguration(String configID, String sectionID)
configID
- the identifier of the configuration groupsectionID
- the identifier of the section within the group
<T> T readConfiguration(String configID, String sectionID, Class<T> clazz)
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
Map<String,String> readConfigurationAsMap(String configID, String sectionID)
configID
- the identifier of the configuration groupsectionID
- the identifier of the section within the group
void readConfigurationsPointsForPackage(String basePackage)
basePackage
- the base package to search configurations classes onboolean removeConfiguration(Object bean) throws Exception
bean
- the object (JavaBean) that will be read and saved
Exception
- if the return object cannot be createdboolean removeConfiguration(String configID, String sectionID)
configID
- the identifier of the configuration groupsectionID
- the identifier of the section within the group
boolean writeConfiguration(String configID, String sectionID, Object bean)
configID
- the identifier of the configuration groupsectionID
- the identifier of the section within the groupbean
- the object (JavaBean) that will be read and saved
boolean writeConfiguration(String configID, String sectionID, Properties values)
configID
- the identifier of the configuration groupsectionID
- the identifier of the section within the groupvalues
- a Properties object with the key value pairs
<T> boolean writeConfiguration(T annotatedPojo) throws Exception
T
- the Type to createannotatedPojo
- the annotated class object with the values to be saved
Exception
- if the bean class is not foundboolean writeConfigurationFromMap(String configID, String sectionID, Map<String,String> values)
configID
- the identifier of the configuration groupsectionID
- the identifier of the section within the groupvalues
- a Properties object with the key value pairs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |