You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to provide my own implementation of the underlying controller, so I can process my own code when an action like "render()" is called.
The ControllersEnhancer is essential to a proper functioning Controller, but it's hard coded to only work for play.mvc.Controller:
if (field.getDeclaringClass().getName().equals("play.mvc.Controller") || field.getDeclaringClass().getName().equals("play.mvc.WebSocketController")) {
If this could be made more generic, I could provide my own implementation, so rather than controllers extending play.mvc.Controller, I could extend MyController instead. I've verified it works locally by changing .equals("play.mvc.Controller") to .startsWith("play.mvc.").
The text was updated successfully, but these errors were encountered:
I would like to provide my own implementation of the underlying controller, so I can process my own code when an action like "render()" is called.
The ControllersEnhancer is essential to a proper functioning Controller, but it's hard coded to only work for play.mvc.Controller:
If this could be made more generic, I could provide my own implementation, so rather than controllers extending play.mvc.Controller, I could extend MyController instead. I've verified it works locally by changing .equals("play.mvc.Controller") to .startsWith("play.mvc.").
The text was updated successfully, but these errors were encountered: