In the current BeanUtils 1.3 API Doc Package
Description, near the end there is an example using
the  BasicDynaBean implementation of dynamic
beans(api.org.apache.commons.beanutils.package-summary.html).

It gives the following example creating the employee
Bean dynamically:
    BasicDynaClass dynaClass = new
BasicDynaClass("employee",
     { new DynaProperty("address", "java.util.Map"),
       new DynaProperty("subordinate",
"mypackage.Employee[]"),
       new DynaProperty("firstName",
"java.lang.String"),
       new DynaProperty("lastName",
"java.lang.String") });

When I try this, it gives a syntax error on the
BasicDynaClass constructor.  The BasicDynaClass
constrcutor being used accepts a string and an array
of DynaProperties.  This seems very straight forward,
but there is no implementation of this construtor in
the current BeanUtil 1.3 API.

The only existing BasicDynaClass construtor I see
accepting an array of DynaProperties has another
string variable for the dynaBeanClass instance
implementation.

The package description recommends that you create
your own DynaClass implementation, but should the
example work with the current 1.3 implementation of
the BasicDynaClass?

If I was to use the implemented BasicDynaClass
construtor, what would I give as the implemented
DynaClass instance name?

Thank you,
Duane

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to