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-99) ManageableCollectionUtil should not throw "unsupported" JcrMapping exception
Date Thu, 21 Sep 2006 21:08:25 GMT
    [ ] 
Christophe Lombart commented on GRFT-99:


I'm sorry but I forget some details on this issue. If I understand, you want a generic implementation
for the interface ManageableCollection (based on the java collection).

> ManageableCollectionUtil should not throw "unsupported" JcrMapping exception
> ----------------------------------------------------------------------------
>                 Key: GRFT-99
>                 URL:
>             Project: Graffito
>          Issue Type: Improvement
>          Components: JCR-Mapping
>    Affects Versions: 1.0-a1-dev
>         Environment: All
>            Reporter: Dan Connelly
> Many times, the object model'd code cannot be altered for ocm.
> To avoid the "unsupported" exception in almost all such cases, use a delegating wrapper
class to encapsulate a Collection.    The wrapper class implements MaangeableCollection.
> Since delegation is a performance hit, make the test below the last resort for *object*
 conversion in the method:
> public static ManageableCollection getManageableCollection(Object object) 
> Proposed "catchall" test and program action:
>             if (object instanceof Collection) {
>                 return new ManageableCollectionImpl((Collection)object);
>             }

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