plugins
allows to develop plugins which propose specific functionalities without incurring any dependencies from the core application: if the plugins directory is not present of any plugin is missing, the application should continue to work without any problem.docJPluginFactory: <The plugin factory class>The plugin factory class must be a class implementing the PluginFactory interface.
public interface PluginFactory |
---|
Modifier and Type | Method and Description |
---|---|
void | getCustomProperties()
Return the CustomProperties (default is null, which means that there are no custom properties)
|
public | getElementHook(DirectoryParser parser, HookContext context)
Return the ElementHook defined by this factory. Return null by default. Note that you must implement the
hasElementHook() method accordingly.Parameters context - The HookContext context parser - The directory parser |
void | getID()
Return the factory ID. Must be unique for each Plugin
|
void | getSupportedOutputFormat()
Return the supported output format (default is null, which means that no specific output format is supported)
|
public | hasElementHook()
Return true if this factory provides an ElementHook. Return false by default. Note that you must implement the
getElementHook() method accordingly |
public | newDirectoryWriter()
Return a new Directory writer (default is null, which means that no specific DirectoryWriter is provided). Note that you should provide a DirectoryWriter if the
getSupportedOutputFormat() method does not return null |
getCustomProperties()
method. Custom properties are usable both on the command-line and configuration file.
java -jar docGenerator.jar -input=wiki/input -output=wiki/output -hasTOC=false -outputType=docx
But this will work:
java -jar docGenerator.jar -input=wiki/input -output=wiki/output -outputType=docx -hasTOC=false
docJGenerator Copyright (c) 2016-2023 Herve Girod. All rights reserved.