mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-05 04:56:02 +01:00
(refs #32)Separate Plugin interface and implementation
This commit is contained in:
15
src/main/scala/plugin/Plugin.scala
Normal file
15
src/main/scala/plugin/Plugin.scala
Normal file
@@ -0,0 +1,15 @@
|
||||
package plugin
|
||||
|
||||
import plugin.PluginSystem.{Action, GlobalMenu, RepositoryMenu}
|
||||
|
||||
trait Plugin {
|
||||
val id: String
|
||||
val author: String
|
||||
val url: String
|
||||
val description: String
|
||||
|
||||
def repositoryMenus : List[RepositoryMenu]
|
||||
def globalMenus : List[GlobalMenu]
|
||||
def repositoryActions : List[Action]
|
||||
def globalActions : List[Action]
|
||||
}
|
||||
Reference in New Issue
Block a user