Hi Ryan,

I don't think there's any need for an enhancement here, as a mechanism for 
changing the behaviour of makeEventBean() already exists, if the default 
does not suit your needs.

In ModelGlue's internal configuration there is a bean populator defined

<bean id="modelGlue.beanPopulator" 
   
class="ModelGlue.gesture.externaladapters.beanpopulation.CollectionBeanPopulator"
 
/>

You can override this in your applications configuration by providing your 
own bean that points to a custom beanPopulator, all you need to do is make 
sure your custom bean populator has a populate() method with a signature 
that matches the default.

<bean id="modelGlue.beanPopulator" 
   class="myapp.com.CustomBeanPopulator" />

The default bean populator allows you to pass in a reference to a bean, or 
the class name of a bean to create.  If you pass in a class name then 
populate() needs to return a reference to the freshly created bean. However 
if you accept that in your app you will always pass in a target by reference 
then your bean populator could return a list of fields that it successfully 
populated.

Chris



-- 
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog

You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en

Reply via email to