commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Graham <grahamdavid1...@yahoo.com>
Subject Re: [beanutils][lang] BeanFactory Proposal
Date Tue, 09 Sep 2003 23:33:04 GMT

--- robert burrell donkin <robertburrelldonkin@blueyonder.co.uk> wrote:
> hi david
> 
> i did take a look at this a little while ago and i'm fairly positive
> about 
> the proposal. but there's a huge backlog of beanutils stuff that really 
> needs looking at and thinking about (including your proposal).
> 
> on issue (that i think has been raised in the past) is that the factory
> is 
> not just about beans - it seems to me like a more general utility class.
> i'
> ve cc'd lang so that they can help to settle this issue.
> 
> comments anyone?

I proposed it in BeanUtils because JavaBeans must have a no-arg
constructor to be dynamically created.  ObjectFactory relies on this fact
to create instances.  I agree that Lang could also be a suitable place for
ObjectFactory.

David

> 
> - robert
> 
> On Tuesday, September 9, 2003, at 05:22 AM, David Graham wrote:
> 
> > Some time ago I opened an enhancement ticket
> >
> > http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18087
> >
> > for a BeanFactory class.  Currently it lives in the Mapper sandbox
> project
> > as ObjectFactory but, IMHO, it really belongs in a bean oriented
> package
> > like BeanUtils.  The whole point of the class is to allow configurable
> > (via a Map) object creation.  You pass it a logical name, it gives you
> an
> > instance of some Object.  It takes all the pain out of dynamic object
> > creation and is crucial to what packages like Mapper do.
> >
> > Anyways, I'd appreciate it if a BeanUtils committer would comment on
> this.
> >  As always, I'll support the code should it make it into BeanUtils (it
> > already has some test cases :-).
> >
> > Source:
> > http://cvs.apache.org/viewcvs.cgi/jakarta-commons-
> >
>
sandbox/mapper/src/share/org/apache/commons/mapper/util/ObjectFactory.java?
> > rev=HEAD&content-type=text/vnd.viewcvs-markup
> >
> > Javadoc:
> >
>
http://jakarta.apache.org/commons/sandbox/mapper/apidocs/org/apache/commons/
> > mapper/util/ObjectFactory.html
> >
> > Thanks,
> > David
> >
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! SiteBuilder - Free, easy-to-use web site design software
> > http://sitebuilder.yahoo.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

Mime
View raw message