Package play
Class ConfigurationChangeWatcherPlugin
- java.lang.Object
-
- play.PlayPlugin
-
- play.ConfigurationChangeWatcherPlugin
-
- All Implemented Interfaces:
java.lang.Comparable<PlayPlugin>
public class ConfigurationChangeWatcherPlugin extends PlayPlugin
Plugin used for tracking for application.conf changes
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class play.PlayPlugin
PlayPlugin.Filter<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected static longconfigLastModified-
Fields inherited from class play.PlayPlugin
index
-
-
Constructor Summary
Constructors Constructor Description ConfigurationChangeWatcherPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddetectChange()It's time for the plugin to detect changes.voidonApplicationStart()Called at application start (and at each reloading) Time to start stateful things.protected voidonConfigurationFileChanged(VirtualFile conf)voidonConfigurationRead()Called when the application.conf has been read.-
Methods inherited from class play.PlayPlugin
addMimeTypes, addTemplateExtensions, afterActionInvocation, afterApplicationStart, afterFixtureLoad, afterInvocation, beforeActionInvocation, beforeDetectingChanges, beforeInvocation, bind, bind, bind, bindBean, compareTo, compileAll, compileSources, detectClassesChange, enhance, getFilter, getFunctionalTests, getJsonStatus, getMessage, getStatus, getUnitTests, hasFilter, invocationFinally, loadTemplate, modelFactory, onActionInvocationFinally, onActionInvocationResult, onApplicationReady, onApplicationStop, onClassesChange, onEvent, onInvocationException, onInvocationSuccess, onLoad, onRequestRouting, onRoutesLoaded, onTemplateCompilation, overrideTemplateSource, postEvent, rawInvocation, routeRequest, runTest, serveStatic, unBind, willBeValidated
-
-
-
-
Method Detail
-
onApplicationStart
public void onApplicationStart()
Description copied from class:PlayPluginCalled at application start (and at each reloading) Time to start stateful things.- Overrides:
onApplicationStartin classPlayPlugin
-
onConfigurationRead
public void onConfigurationRead()
Description copied from class:PlayPluginCalled when the application.conf has been read.- Overrides:
onConfigurationReadin classPlayPlugin
-
detectChange
public void detectChange()
Description copied from class:PlayPluginIt's time for the plugin to detect changes. Throw an exception is the application must be reloaded.- Overrides:
detectChangein classPlayPlugin
-
onConfigurationFileChanged
protected void onConfigurationFileChanged(VirtualFile conf)
-
-