public class DBPlugin extends PlayPlugin
Modifier and Type | Class and Description |
---|---|
static class |
DBPlugin.PlayConnectionCustomizer |
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 String |
url |
index
Constructor and Description |
---|
DBPlugin() |
Modifier and Type | Method and Description |
---|---|
String |
getStatus()
Return the plugin status
|
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.
|
boolean |
rawInvocation(Http.Request request,
Http.Response response)
Give a chance to this plugin to fully manage this request
|
addMimeTypes, addTemplateExtensions, afterActionInvocation, afterApplicationStart, afterFixtureLoad, afterInvocation, beforeActionInvocation, beforeDetectingChanges, beforeInvocation, bind, bind, bind, bindBean, compareTo, compileAll, compileSources, detectChange, detectClassesChange, enhance, getFilter, getFunctionalTests, getJsonStatus, getMessage, getUnitTests, hasFilter, loadTemplate, modelFactory, onActionInvocationFinally, onActionInvocationResult, onApplicationReady, onClassesChange, onConfigurationRead, onEvent, onInvocationException, onInvocationSuccess, onLoad, onRequestRouting, onRoutesLoaded, onTemplateCompilation, overrideTemplateSource, postEvent, routeRequest, runTest, serveStatic, unBind, willBeValidated
public static String url
public boolean rawInvocation(Http.Request request, Http.Response response) throws Exception
PlayPlugin
rawInvocation
in class PlayPlugin
request
- The Play requestresponse
- The Play responseException
public void onApplicationStart()
PlayPlugin
onApplicationStart
in class PlayPlugin
public void onApplicationStop()
PlayPlugin
onApplicationStop
in class PlayPlugin
public String getStatus()
PlayPlugin
getStatus
in class PlayPlugin
public void invocationFinally()
PlayPlugin
invocationFinally
in class PlayPlugin
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly