mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-06 05:25:50 +01:00
Experimental JDBC API for JavaScript plug-ins
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package plugin
|
||||
|
||||
import plugin.PluginSystem._
|
||||
import java.sql.Connection
|
||||
|
||||
trait Plugin {
|
||||
val id: String
|
||||
@@ -14,3 +15,7 @@ trait Plugin {
|
||||
def repositoryActions : List[RepositoryAction]
|
||||
def globalActions : List[Action]
|
||||
}
|
||||
|
||||
object PluginConnectionHolder {
|
||||
val threadLocal = new ThreadLocal[Connection]
|
||||
}
|
||||
Reference in New Issue
Block a user