abstract class Plugin extends AnyRef
Trait for define plugin interface. To provide a plugin, put a Plugin class which extends this class into the package root.
- Alphabetic
- By Inheritance
- Plugin
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Plugin()
Abstract Value Members
Concrete Value Members
-
def
accountSettingMenus(registry: PluginRegistry, context: ServletContext, settings: SystemSettings): Seq[(Context) ⇒ Option[Link]]
Override to add account setting menus.
-
val
accountSettingMenus: Seq[(Context) ⇒ Option[Link]]
Override to add account setting menus.
-
def
assetsMappings(registry: PluginRegistry, context: ServletContext, settings: SystemSettings): Seq[(String, String)]
Override to add assets mappings.
-
val
assetsMappings: Seq[(String, String)]
Override to add assets mappings.
-
def
controllers(registry: PluginRegistry, context: ServletContext, settings: SystemSettings): Seq[(String, ControllerBase)]
Override to declare this plug-in provides controllers.
-
val
controllers: Seq[(String, ControllerBase)]
Override to declare this plug-in provides controllers.
-
def
dashboardTabs(registry: PluginRegistry, context: ServletContext, settings: SystemSettings): Seq[(Context) ⇒ Option[Link]]
Override to add dashboard tabs.
-
val
dashboardTabs: Seq[(Context) ⇒ Option[Link]]
Override to add dashboard tabs.
-
def
globalMenus(registry: PluginRegistry, context: ServletContext, settings: SystemSettings): Seq[(Context) ⇒ Option[Link]]
Override to add global menus.
-
val
globalMenus: Seq[(Context) ⇒ Option[Link]]
Override to add global menus.
-
def
images(registry: PluginRegistry, context: ServletContext, settings: SystemSettings): Seq[(String, Array[Byte])]
Override to declare this plug-in provides images.
-
val
images: Seq[(String, Array[Byte])]
Override to declare this plug-in provides images.
-
def
initialize(registry: PluginRegistry, context: ServletContext, settings: SystemSettings): Unit
This method is invoked in initialization of plugin system.
This method is invoked in initialization of plugin system. Register plugin functionality to PluginRegistry.
-
def
javaScripts(registry: PluginRegistry, context: ServletContext, settings: SystemSettings): Seq[(String, String)]
Override to declare this plug-in provides JavaScript.
-
val
javaScripts: Seq[(String, String)]
Override to declare this plug-in provides JavaScript.
-
def
profileTabs(registry: PluginRegistry, context: ServletContext, settings: SystemSettings): Seq[(Account, Context) ⇒ Option[Link]]
Override to add profile tabs.
-
val
profileTabs: Seq[(Account, Context) ⇒ Option[Link]]
Override to add profile tabs.
-
def
receiveHooks(registry: PluginRegistry, context: ServletContext, settings: SystemSettings): Seq[ReceiveHook]
Override to add receive hooks.
-
val
receiveHooks: Seq[ReceiveHook]
Override to add receive hooks.
-
def
renderers(registry: PluginRegistry, context: ServletContext, settings: SystemSettings): Seq[(String, Renderer)]
Override to declare this plug-in provides renderers.
-
val
renderers: Seq[(String, Renderer)]
Override to declare this plug-in provides renderers.
-
def
repositoryHooks(registry: PluginRegistry, context: ServletContext, settings: SystemSettings): Seq[RepositoryHook]
Override to add repository hooks.
-
val
repositoryHooks: Seq[RepositoryHook]
Override to add repository hooks.
-
def
repositoryMenus(registry: PluginRegistry, context: ServletContext, settings: SystemSettings): Seq[(RepositoryInfo, Context) ⇒ Option[Link]]
Override to add repository menus.
-
val
repositoryMenus: Seq[(RepositoryInfo, Context) ⇒ Option[Link]]
Override to add repository menus.
-
def
repositoryRoutings(registry: PluginRegistry, context: ServletContext, settings: SystemSettings): Seq[GitRepositoryRouting]
Override to add git repository routings.
-
val
repositoryRoutings: Seq[GitRepositoryRouting]
Override to add git repository routings.
-
def
repositorySettingTabs(registry: PluginRegistry, context: ServletContext, settings: SystemSettings): Seq[(RepositoryInfo, Context) ⇒ Option[Link]]
Override to add repository setting tabs.
-
val
repositorySettingTabs: Seq[(RepositoryInfo, Context) ⇒ Option[Link]]
Override to add repository setting tabs.
-
def
shutdown(registry: PluginRegistry, context: ServletContext, settings: SystemSettings): Unit
This method is invoked in shutdown of plugin system.
This method is invoked in shutdown of plugin system. If the plugin has any resources, release them in this method.
-
def
suggestionProviders(registry: PluginRegistry, context: ServletContext, settings: SystemSettings): Seq[SuggestionProvider]
Override to add suggestion provider.
-
val
suggestionProviders: Seq[SuggestionProvider]
Override to add suggestion provider.
-
def
systemSettingMenus(registry: PluginRegistry, context: ServletContext, settings: SystemSettings): Seq[(Context) ⇒ Option[Link]]
Override to add system setting menus.
-
val
systemSettingMenus: Seq[(Context) ⇒ Option[Link]]
Override to add system setting menus.
-
def
textDecorators(registry: PluginRegistry, context: ServletContext, settings: SystemSettings): Seq[TextDecorator]
Override to add text decorators.
-
val
textDecorators: Seq[TextDecorator]
Override to add text decorators.