| java.lang.Object org.clapper.curn.DataPersister org.clapper.curn.XMLDataPersister
XMLDataPersister | public class XMLDataPersister extends DataPersister (Code) | | version: $Revision: 6962 $ |
Method Summary | |
protected void | doLoad(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. | public 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(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. |
XMLDataPersister | public XMLDataPersister()(Code) | | Creates a new instance of XMLDataPersister
|
doLoad | protected void doLoad(LoadedDataHandler loadedDataHandler) throws CurnException(Code) | | The actual load method; only called if the object is enabled.
Parameters: loadedDataHandler - object to receive data as it's loaded throws: CurnException - on error |
endLoadOperation | protected void endLoadOperation() throws CurnException(Code) | | Called at the end of the load operation to close files, clean
up, etc.
throws: CurnException - on error |
endSaveOperation | protected void endSaveOperation() throws CurnException(Code) | | Called at the end of the actual save operation to flush files, clean
up, etc.
throws: CurnException - on error |
init | public void init(CurnConfig curnConfig) throws CurnException(Code) | | Called when the DataPersister is first instantiated. Useful
for retrieving configuration values, etc.
Parameters: curnConfig - the configuration throws: CurnException - on error |
isEnabled | protected boolean isEnabled()(Code) | | Determine whether the data persister subclass is enabled or not (i.e.,
whether or not metadata is to be loaded and saved). The configuration
usually determines whether or not the data persister is enabled.
true if enabled, false if disabled. |
startLoadOperation | protected void startLoadOperation() throws CurnException(Code) | | Called at the beginning of the load operation to initialize
the load.
throws: CurnException - on error |
startSaveOperation | protected void startSaveOperation() throws CurnException(Code) | | Called at the beginning of the actual save operation to initialize
the save, etc.
throws: CurnException - on error |
|
|