|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.clapper.curn.DataPersisterFactory
public final class DataPersisterFactory
Class that's used to create a DataPersister. This class is
implemented as a plug-in, so that curn's plug-in discovery
mechanism will find it and automatically configure it. The factory
methods, though, are static; the plug-in logic merely sets up the data
structures that are used by the static methods.
PlugIn,
DataPersister| Constructor Summary | |
|---|---|
DataPersisterFactory()
Creates a new instance of DataPersisterFactory |
|
| Method Summary | |
|---|---|
static DataPersister |
getInstance()
Get the configured data persister object. |
java.lang.String |
getPlugInName()
Get a displayable name for the plug-in. |
java.lang.String |
getPlugInSortKey()
Get the sort key for this plug-in. |
void |
initPlugIn()
Initialize the plug-in. |
void |
runMainConfigItemPlugIn(java.lang.String sectionName,
java.lang.String paramName,
CurnConfig config)
Called immediately after curn has read and processed a configuration item in the main [curn] configuration section. |
void |
runPostConfigPlugIn(CurnConfig config)
Called after the entire configuration has been read and parsed, but before any feeds are processed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataPersisterFactory()
| Method Detail |
|---|
public static DataPersister getInstance()
public void initPlugIn()
throws CurnException
initPlugIn in interface PlugInCurnException - on errorpublic java.lang.String getPlugInName()
getPlugInName in interface PlugInpublic java.lang.String getPlugInSortKey()
getPlugInSortKey in interface PlugIn
public void runMainConfigItemPlugIn(java.lang.String sectionName,
java.lang.String paramName,
CurnConfig config)
throws CurnException
runMainConfigItemPlugIn in interface MainConfigItemPlugInsectionName - the name of the configuration section where
the item was foundparamName - the name of the parameterconfig - the CurnConfig object
CurnException - on errorCurnConfig
public void runPostConfigPlugIn(CurnConfig config)
throws CurnException
runPostConfigPlugIn in interface PostConfigPlugInconfig - the parsed CurnConfig object
CurnException - on errorCurnConfig
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||