public abstract class AddOn extends Object implements AddOnModel, ContextProvider, Loggable, LoggedExceptionCallback
| Constructor and Description |
|---|
AddOn(String addOnID)
The default constructor for AddOns
|
| Modifier and Type | Method and Description |
|---|---|
Context |
getContext()
Returns the Context of the AddOn.
|
String |
getID()
An ID must always be unique.
|
ro.fortsoft.pf4j.PluginWrapper |
getPlugin()
Gets the associated Plugin.
|
void |
initAddOn(Context context)
Internal initiation of addOn - fake constructor, comes before prepare
|
abstract void |
prepare()
This method gets called before registering
|
void |
register()
This method is used to register the modules
|
abstract ActivatorModel[] |
registerActivator()
Use this method to register (if needed) your Activators.
|
abstract ContentGenerator[] |
registerContentGenerator()
Use this method to register (if needed) your ContentGenerators.
|
abstract EventsControllerModel[] |
registerEventController()
Use this method to register (if needed) your EventControllers.
|
abstract OutputExtensionModel[] |
registerOutputExtension()
Use this method to register (if needed) your Output.
|
abstract OutputPluginModel[] |
registerOutputPlugin()
Use this method to register (if needed) your OutputPlugins.
|
void |
setPlugin(ro.fortsoft.pf4j.PluginWrapper plugin)
Sets the Plugin IF it is not already set.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisOwnerdebug, debug, error, error, fatal, fatal, warn, warnexceptionThrownpublic void register()
register in interface AddOnModelpublic abstract void prepare()
public abstract ActivatorModel[] registerActivator()
public abstract ContentGenerator[] registerContentGenerator()
public abstract EventsControllerModel[] registerEventController()
public abstract OutputPluginModel[] registerOutputPlugin()
public abstract OutputExtensionModel[] registerOutputExtension()
public void initAddOn(Context context)
initAddOn in interface AddOnModelcontext - the context to initialize withpublic Context getContext()
getContext in interface ContextProviderpublic ro.fortsoft.pf4j.PluginWrapper getPlugin()
getPlugin in interface AddOnModelpublic void setPlugin(ro.fortsoft.pf4j.PluginWrapper plugin)
setPlugin in interface AddOnModelplugin - the pluginpublic String getID()
getID in interface IdentifiableCopyright © 2016. All rights reserved.