org.infohazard.maverick.ctl
Class ThrowawayBean2
java.lang.Object
|
+--org.infohazard.maverick.ctl.Throwaway2
|
+--org.infohazard.maverick.ctl.ThrowawayBean2
- All Implemented Interfaces:
- Controller
- public class ThrowawayBean2
- extends Throwaway2
ThrowawayBean2 is a throwaway controller which populates its
bean properties using the Apache BeanUtils. Note that unless
you set the model yourself, the default will be "this".
This is the typical use case
of html form processing; the controller itself will have setters and
getters for the various fields. See the FriendBook sample for several
examples of this idiom.
It's certainly not necessary to use the controller-as-model pattern.
You can set specific objects to custom-tailor the "shape" of the
model.
Method Summary |
protected java.lang.String |
go()
This is the method you should override to implement application logic. |
protected java.lang.String |
perform()
This is the method you should override to implement application logic. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThrowawayBean2
public ThrowawayBean2()
perform
protected java.lang.String perform()
throws java.lang.Exception
- This is the method you should override to implement application logic.
Default implementation just returns "success".
java.lang.Exception
go
protected final java.lang.String go()
throws java.lang.Exception
- Description copied from class:
Throwaway2
- This is the method you should override to implement application logic.
- Specified by:
go
in class Throwaway2
java.lang.Exception