public class DBPlugin extends PlayPlugin
Modifier and Type | Class and Description |
---|---|
static class |
DBPlugin.ProxyDriver
Needed because DriverManager will not load a driver ouside of the system classloader
|
PlayPlugin.Filter<T>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
url |
index
Constructor and Description |
---|
DBPlugin() |
Modifier and Type | Method and Description |
---|---|
protected DataSourceFactory |
factory(Configuration dbConfig) |
void |
invocationFinally()
Called at the end of the invocation.
|
void |
onApplicationStart()
Called at application start (and at each reloading) Time to start stateful things.
|
void |
onApplicationStop()
Called at application stop (and before each reloading) Time to shutdown stateful things.
|
protected java.lang.String |
testDataSource(javax.sql.DataSource ds) |
addMimeTypes, addTemplateExtensions, afterActionInvocation, afterApplicationStart, afterFixtureLoad, afterInvocation, beforeActionInvocation, beforeDetectingChanges, beforeInvocation, bind, bind, bind, bindBean, compareTo, compileAll, compileSources, detectChange, detectClassesChange, enhance, getFilter, getFunctionalTests, getJsonStatus, getMessage, getStatus, getUnitTests, hasFilter, loadTemplate, modelFactory, onActionInvocationFinally, onActionInvocationResult, onApplicationReady, onClassesChange, onConfigurationRead, onEvent, onInvocationException, onInvocationSuccess, onLoad, onRequestRouting, onRoutesLoaded, onTemplateCompilation, overrideTemplateSource, postEvent, rawInvocation, routeRequest, runTest, serveStatic, unBind, willBeValidated
protected DataSourceFactory factory(Configuration dbConfig)
public void onApplicationStart()
PlayPlugin
onApplicationStart
in class PlayPlugin
protected java.lang.String testDataSource(javax.sql.DataSource ds) throws java.sql.SQLException
java.sql.SQLException
public void onApplicationStop()
PlayPlugin
onApplicationStop
in class PlayPlugin
public void invocationFinally()
PlayPlugin
invocationFinally
in class PlayPlugin
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly