mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-04 20:45:58 +01:00
22 lines
518 B
Scala
22 lines
518 B
Scala
package plugin
|
|
|
|
import plugin.PluginSystem._
|
|
import java.sql.Connection
|
|
|
|
trait Plugin {
|
|
val id: String
|
|
val version: String
|
|
val author: String
|
|
val url: String
|
|
val description: String
|
|
|
|
def repositoryMenus : List[RepositoryMenu]
|
|
def globalMenus : List[GlobalMenu]
|
|
def repositoryActions : List[RepositoryAction]
|
|
def globalActions : List[Action]
|
|
def javaScripts : List[JavaScript]
|
|
}
|
|
|
|
object PluginConnectionHolder {
|
|
val threadLocal = new ThreadLocal[Connection]
|
|
} |