Playframework 1.2.5 custom module never hit -


steps:

  1. play new-module firstmodule

  2. updated play.plugins file of module include

    10:play.modules.firstmodule.myplugin 
  3. create myplugin class:

    package play.modules.firstmodule; import play.logger; import play.playplugin; public class myplugin extends playplugin { @override public void onload() { logger.info("hello"); } @override public void onapplicationstart() { logger.info("hello"); } @override public void onroutesloaded() { logger.info("hello"); } } 
  4. play build-module

  5. add module main project dependencies

    require: - play 1.2.5 - custommodules -> firstmodule repositories: - playcustommodules: type: local artifact: c:\github\firstmodule\dist\firstmodule-0.1.zip contains: - custommodules -> * 
  6. play deps resolves dependencies correctly

  7. play run

server starts , hit page, log message "hello" never printed. gives?

got worked?

i had add same play.plugins files main proyect /conf directory make work.


Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -