| java.lang.Object org.clapper.curn.DataPersisterFactory
DataPersisterFactory | final public class DataPersisterFactory implements MainConfigItemPlugIn,PostConfigPlugIn(Code) | | 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.
See Also: PlugIn See Also: DataPersister version: $Revision: 6548 $ |
DataPersisterFactory | public DataPersisterFactory()(Code) | | Creates a new instance of DataPersisterFactory
|
getInstance | public static DataPersister getInstance()(Code) | | Get the configured data persister object.
the configured data persister. |
getPlugInName | public String getPlugInName()(Code) | | Get a displayable name for the plug-in.
the name |
getPlugInSortKey | public String getPlugInSortKey()(Code) | | Get the sort key for this plug-in.
the sort key string. |
initPlugIn | public void initPlugIn() throws CurnException(Code) | | Initialize the plug-in. This method is called before any of the
plug-in methods are called.
throws: CurnException - on error |
runMainConfigItemPlugIn | public void runMainConfigItemPlugIn(String sectionName, String paramName, CurnConfig config) throws CurnException(Code) | | Called immediately after curn has read and processed a
configuration item in the main [curn] configuration section. All
configuration items are passed, one by one, to each loaded plug-in.
If a plug-in class is not interested in a particular configuration
item, this method should simply return without doing anything. Note
that some configuration items may simply be variable assignment;
there's no real way to distinguish a variable assignment from a
blessed configuration item.
Parameters: sectionName - the name of the configuration section wherethe item was found Parameters: paramName - the name of the parameter Parameters: config - the CurnConfig object throws: CurnException - on error See Also: CurnConfig |
runPostConfigPlugIn | public void runPostConfigPlugIn(CurnConfig config) throws CurnException(Code) | | Called after the entire configuration has been read and parsed, but
before any feeds are processed. Intercepting this event is useful
for plug-ins that want to adjust the configuration. For instance,
the curn command-line wrapper intercepts this plug-in event
so it can adjust the configuration to account for command line
options.
Parameters: config - the parsed CurnConfig object throws: CurnException - on error See Also: CurnConfig |
|
|