|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConfigurationManagementEntry
Configuration management entry associates a key to a configuration, stored as a content.
In addition to key and content, it registers the file name from which a configuration was read,
whether the configuration is in an error state, and whether or not it was overwritten.
The entry is considered to be in error, if it cannot be parsed from the configuration file.
In such case, instead of the configuration, an exception would be stored in the configuration entry
content. If the configuration in error is requested, the exception is returned.
The owervritten stands flag is to show whether a configuration was programmatically
ovewrittend (by using add configuration method
. Otherwise it is false; it is also reset when reload is called
on ConfigurationManagement
. It could also be set by user.
Method Summary | |
---|---|
ConfigurationType |
getConfigurationType()
Returns the configuration type of this entry. |
java.lang.Object |
getContent()
Returns the parsed configuration. |
java.util.Date |
getCreateDate()
Returns the date and time when this entry was created. |
java.lang.String |
getFileName()
Returns the file name from where the configuration was read. |
java.lang.String |
getKey()
Returns configuration the key associated with this record. |
java.util.Date |
getModifiedDate()
Returns the date and time when this entry was modified. |
ConfigEntryParser |
getProcessor()
Returns the processor that parsed the cofiguration from the configuration file. |
boolean |
isError()
Returns true if the record is in error state. |
boolean |
isOverwritten()
Returns true if the record was overwritten. |
void |
setModifiedDate(java.util.Date modifiedDate)
Sets the date the entry was modified. |
void |
setOverwritten(boolean overwritten)
Sets the owerwritten flag. |
java.lang.String |
toString()
Returns the string representation of this entry. |
Method Detail |
---|
java.lang.String getKey()
java.lang.String getFileName()
boolean isOverwritten()
boolean isError()
java.lang.Object getContent()
java.lang.String toString()
toString
in class java.lang.Object
java.util.Date getCreateDate()
java.util.Date getModifiedDate()
void setModifiedDate(java.util.Date modifiedDate)
modifiedDate
- modified dateConfigEntryParser getProcessor()
void setOverwritten(boolean overwritten)
overwritten
- true if the record was overwritten.ConfigurationType getConfigurationType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |