incubator-graffito-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christophe Lombart (JIRA)" <>
Subject [jira] Commented: (GRFT-101) Allow developer to supply "newInstace" method in subclass of ObjectConverterImpl
Date Thu, 21 Sep 2006 21:12:24 GMT
    [ ] 
Christophe Lombart commented on GRFT-101:


Can you provide a patch for this issue ? 

> Allow developer to supply "newInstace" method in subclass of ObjectConverterImpl
> --------------------------------------------------------------------------------
>                 Key: GRFT-101
>                 URL:
>             Project: Graffito
>          Issue Type: Improvement
>    Affects Versions: 1.0-a1-dev
>         Environment: JCR Mapping
>            Reporter: Dan Connelly
> I used a simple change in ObjectConverterImpl.   This allows me to use a Factory class
(in place of JavaBean constructors) in my object model.
> I added the following method to ObjectConverterImpl.:
>    protected Object newInstance(String className) {
>        return ReflectionUtils.newInstance(className);
>    }
> Elsewhere in ObjectConverterImpl, it will now invoke
>            this.newInstance(classDescriptor.getClassName());
> every where that is previously invoked
>            ReflectionUtils.newInstance(classDescriptor.getClassName());
> Now I can over-ride the newInstance method in MyObjectConverterImpl (which subclasses
ObjectConverterImpl).   This allows me to construct objects for my model using its Factory

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message