All Downloads are FREE. Search and download functionalities are using the official Maven repository.

play.Plugin Maven / Gradle / Ivy

/*
 * Copyright (C) 2009-2015 Typesafe Inc. 
 */
package play;

/**
 * A Play plugin.
 *
 * A plugin must define a single argument constructor that accepts an {@link play.Application}, for example:
 *
 * 
 * public class MyPlugin extends Plugin {
 *     private final Application app;
 *     public MyPlugin(Application app) {
 *         this.app = app;
 *     }
 *     public void onStart() {
 *         Logger.info("Plugin started!");
 *     }
 * }
 * 
* * @deprecated Use modules instead. See {@link play.api.inject.Module}. */ @Deprecated public class Plugin implements play.api.Plugin { /** * Called when the application starts. */ public void onStart() { } /** * Called when the application stops. */ public void onStop() { } /** * Is this plugin enabled. */ public boolean enabled() { return true; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy