|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.clapper.curn.DataPersister
org.clapper.curn.XMLDataPersister
public class XMLDataPersister
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.clapper.curn.DataPersister |
|---|
DataPersister.LoadedDataHandler |
| Constructor Summary | |
|---|---|
XMLDataPersister()
Creates a new instance of XMLDataPersister |
|
| Method Summary | |
|---|---|
protected void |
doLoad(DataPersister.LoadedDataHandler loadedDataHandler)
The actual load method; only called if the object is enabled. |
protected void |
endLoadOperation()
Called at the end of the load operation to close files, clean up, etc. |
protected void |
endSaveOperation()
Called at the end of the actual save operation to flush files, clean up, etc. |
void |
init(CurnConfig curnConfig)
Called when the DataPersister is first instantiated. |
protected boolean |
isEnabled()
Determine whether the data persister subclass is enabled or not (i.e., whether or not metadata is to be loaded and saved). |
protected void |
saveExtraMetadata(java.util.Collection<PersistentMetadataGroup> metadata)
Save any extra metadata (i.e., metadata that isn't attached to a specific feed or a specific item). |
protected void |
saveFeedData(PersistentFeedData feedData)
Save the data for one feed, including the items. |
protected void |
startLoadOperation()
Called at the beginning of the load operation to initialize the load. |
protected void |
startSaveOperation()
Called at the beginning of the actual save operation to initialize the save, etc. |
| Methods inherited from class org.clapper.curn.DataPersister |
|---|
addPersistentDataClient, loadData, saveData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLDataPersister()
| Method Detail |
|---|
public void init(CurnConfig curnConfig)
throws CurnException
init in class DataPersistercurnConfig - the configuration
CurnException - on errorprotected boolean isEnabled()
isEnabled in class DataPersister
protected void startSaveOperation()
throws CurnException
startSaveOperation in class DataPersisterCurnException - on error
protected void endSaveOperation()
throws CurnException
endSaveOperation in class DataPersisterCurnException - on error
protected void saveFeedData(PersistentFeedData feedData)
throws CurnException
saveFeedData in class DataPersisterfeedData - the feed data to be saved
CurnException - on error
protected void saveExtraMetadata(java.util.Collection<PersistentMetadataGroup> metadata)
throws CurnException
saveExtraMetadata in class DataPersistermetadata - the collection of metadata items
CurnException - on error
protected void startLoadOperation()
throws CurnException
startLoadOperation in class DataPersisterCurnException - on error
protected void endLoadOperation()
throws CurnException
endLoadOperation in class DataPersisterCurnException - on error
protected void doLoad(DataPersister.LoadedDataHandler loadedDataHandler)
throws CurnException
doLoad in class DataPersisterloadedDataHandler - object to receive data as it's loaded
CurnException - on error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||