Each BeanInfo
has a single BeanDescriptor
that is used to provide information about the Bean. The BeanDescriptor
supports a list of named attributes that augment the standard Java Bean’s information. You set these using the BeanDescriptor
’s setValue
method. ATG servlet beans look for a paramDescriptors
attribute that contains an array of atg.droplet.ParamDescriptor
objects. Each of these ParamDescriptor
objects defines one of the parameters of your servlet bean expects to be provided. It defines the following information:
Argument | Type |
---|---|
Name of the parameter | String |
Description of the parameter’s function. | String |
The Java class describing the parameter. For | String |
Whether or not this parameter is optional or required. Set this to | Boolean |
Whether this parameter is local. Set this to | Boolean |
If this |
|
ParamDescriptor Example
For example, the following paramDescriptor
describes a parameter named numItems
. Its description is number of times to call output
. It is described by the Integer
class, is a required parameter, is not local, and is not an oparam
parameter.
paramDescriptors[0] = new ParamDescriptor("numItems",
"number of times to call output", Integer.class,
false, false, null);