|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.waffle.controller.ControllerDefinition
public class ControllerDefinition
In Waffle a Controller can be any Pojo. Controllers are registered per application
with a custom Registrar
. The ControllerDefinition 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.
Constructor Summary | |
---|---|
ControllerDefinition(java.lang.String name,
java.lang.Object controller,
MethodDefinition methodDefinition)
|
Method Summary | |
---|---|
java.lang.Object |
getController()
The controller (Pojo) this definition is wrapping |
MethodDefinition |
getMethodDefinition()
The method definition which defines tha method and argument values to be invoked on the controller |
java.lang.String |
getName()
The name the controller is registered under in Waffle. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ControllerDefinition(java.lang.String name, java.lang.Object controller, MethodDefinition methodDefinition)
Method Detail |
---|
public java.lang.String getName()
public java.lang.Object getController()
public MethodDefinition getMethodDefinition()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |