This JavaBean is used as input to the HelloWorld Tasklet. As a
JavaBean every property should have a public setter and getter method.
The input JavaBean comes into play in several ways:
- Its properties are used as input to the Tasklet when the
Tasklet is run in a Job.
- Its properties can be edited manually using a Weblet. The
Weblet will persist the changes so it can be used when
the Tasklet/Job is run.
- Its properties can be exposed to other Tasklets within
the Job. This allows Tasklets to pass properties between
each other. The output JavaBean of one Tasklet can pass
properties to the input JavaBean of another Tasklet.
If you don't certain properties in a input JavaBean to be exposed to other
Tasklets within a Job, then define a BeanInfo for the input JavaBean that
only exposes the properties desired. Note that there is no BeanInfo
defined for this particular example.
Note, that all input JavaBeans must be serializable so that they can be persisted.