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, wait
isOwner
debug, debug, error, error, fatal, fatal, warn, warn
exceptionThrown
public void register()
register
in interface AddOnModel
public 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 AddOnModel
context
- the context to initialize withpublic Context getContext()
getContext
in interface ContextProvider
public ro.fortsoft.pf4j.PluginWrapper getPlugin()
getPlugin
in interface AddOnModel
public void setPlugin(ro.fortsoft.pf4j.PluginWrapper plugin)
setPlugin
in interface AddOnModel
plugin
- the pluginpublic String getID()
getID
in interface Identifiable
Copyright © 2016. All rights reserved.