|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.naftulin.configmgr.content.AbstractRecordImpl org.naftulin.configmgr.content.MasterRecordImpl
public class MasterRecordImpl
Parses config.xml file: properties file, log4j xml or log4j properties. Once a master record is created, parsers are called for each of the entries to be parsed and stored in config manager. Entry is similar to config manager entry, yet there is no content (since the entry was not parsed yet).
Constructor Summary | |
---|---|
MasterRecordImpl()
Constructs a record without specifying the key or file name. |
|
MasterRecordImpl(java.lang.String key,
java.lang.String fileName)
Constructs a record with the key and file name specified. |
Method Summary | |
---|---|
void |
addRecord(AbstractRecordImpl record)
Adds a record to the list of records to be processed. |
ConfigEntryParser |
getParser()
Returns master record parser. |
java.util.List<AbstractRecordImpl> |
getRecords()
Returns the unmodifiable list of records from the cofiguration file. |
boolean |
isJmx()
Returns Jmx setting for configuration manager. |
void |
setJmx(boolean jmx)
Sets Jmx setting for configuration manager. |
java.lang.String |
toString()
Returns the string representation of the master record. |
Methods inherited from class org.naftulin.configmgr.content.AbstractRecordImpl |
---|
getFileName, getKey, isGetUrlForFile, setFileName, setKey |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MasterRecordImpl()
public MasterRecordImpl(java.lang.String key, java.lang.String fileName)
key
- the key associated with the record.fileName
- the file name associated with the record.Method Detail |
---|
public boolean isJmx()
public void setJmx(boolean jmx)
jmx
- jmx settingpublic void addRecord(AbstractRecordImpl record)
record
- the record to be processed, read from the master configuration filepublic java.util.List<AbstractRecordImpl> getRecords()
records
from the cofiguration file.
records
from the cofiguration file.public ConfigEntryParser getParser()
getParser
in class AbstractRecordImpl
public java.lang.String toString()
toString
in class AbstractRecordImpl
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |