| |
---|
| | */ |
---|
| | def renderers(registry: PluginRegistry, context: ServletContext, settings: SystemSettings): Seq[(String, Renderer)] = Nil |
---|
| | |
---|
| | /** |
---|
| | * Override to add git repository routings. |
---|
| | */ |
---|
| | val repositoryRoutings: Seq[(String, String)] = Nil |
---|
| | |
---|
| | /** |
---|
| | * Override to add git repository routings. |
---|
| | */ |
---|
| | def repositoryRoutings(registry: PluginRegistry, context: ServletContext, settings: SystemSettings): Seq[(String, String)] = Nil |
---|
| | |
---|
| | /** |
---|
| | * This method is invoked in initialization of plugin system. |
---|
| | * Register plugin functionality to PluginRegistry. |
---|
| | */ |
---|
| | def initialize(registry: PluginRegistry, context: ServletContext, settings: SystemSettings): Unit = { |
---|
| |
---|
| | registry.addJavaScript(path, script) |
---|
| | } |
---|
| | (renderers ++ renderers(registry, context, settings)).foreach { case (extension, renderer) => |
---|
| | registry.addRenderer(extension, renderer) |
---|
| | } |
---|
| | (repositoryRoutings ++ repositoryRoutings(registry, context, settings)).foreach { case (urlPath, localPath) => |
---|
| | registry.addRepositoryRouting(urlPath, localPath) |
---|
| | } |
---|
| | } |
---|
| | |
---|
| | /** |
---|
| |
---|
| | |