| |
---|
| | */ |
---|
| | val javaScripts: Seq[(String, String)] = Nil |
---|
| | |
---|
| | /** |
---|
| | * Override to declare this plug-in provides renderers. |
---|
| | */ |
---|
| | val renderers: Seq[(String, Renderer)] = 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.addController(path, controller) |
---|
| | } |
---|
| | javaScripts.foreach { case (path, script) => |
---|
| | registry.addJavaScript(path, script) |
---|
| | } |
---|
| | renderers.foreach { case (extension, renderer) => |
---|
| | registry.addRenderer(extension, renderer) |
---|
| | } |
---|
| | } |
---|
| | |
---|
| | /** |
---|
| |
---|
| | |