| Home >> All >> org >> infohazard >> maverick >> [ ctl Javadoc ] |
org.infohazard.maverick.ctl: Javadoc index of package org.infohazard.maverick.ctl.
Package Samples:
org.infohazard.maverick.ctl
Classes:
ThrowawayBean2: 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.
Throwaway: Note: While not formally deprecated, use of this class is discouraged. You should use Throwaway2 instead. Throwaway is a base class for simple controllers which implements the single-use controller pattern (a fresh controller instance is created to service each request). No population of properties is performed by this class.
ThrowawayBean: Note: While not formally deprecated, use of this class is discouraged. You should use ThrowawayBean2 instead. ThrowawayBean is a throwaway controller which populates its bean properties using the Apache BeanUtils. Note that the default implementation of model() returns "this".
FormBeanUser: FormBeanUser is a base class for singleton controllers which use external FormBeans rather than populating themselves. Since only one of these will exist for each command definition, it must be thread-safe. This Controller pattern is very similar to Struts Actions.
Throwaway2: Throwaway2 is a base class for simple controllers which implements the single-use controller pattern (a fresh controller instance is created to service each request). No population of properties is performed by this class.
ThrowawayFormBeanUser: This is a hybrid between Throwaway and FormBeanUser - the controller is instantiated like a Throwaway, but allows a form bean to be populated instead.
| Home | Contact Us | Privacy Policy | Terms of Service |