org.codehaus.waffle.controller
Class ControllerDefinition
java.lang.Object
org.codehaus.waffle.controller.ControllerDefinition
public class ControllerDefinition
- extends java.lang.Object
In Waffle a Controller can be any Pojo. Controllers are registered per application
with a custom Registrar
. This class is, a wrapper to merge both
the name the controller was registered under and the actual controller instance.
NOTE: This is required so that Waffle can properly direct to a
view when no 'controller method' request parameter was found, which typically occurs
when a user first enters a web application.
- Author:
- Michael Ward
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ControllerDefinition
public ControllerDefinition(java.lang.String name,
java.lang.Object controller,
MethodDefinition methodDefinition)
getName
public java.lang.String getName()
getController
public java.lang.Object getController()
getMethodDefinition
public MethodDefinition getMethodDefinition()
Copyright © 2008. All Rights Reserved.