jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting (JIRA)" <j...@apache.org>
Subject [jira] Moved: (JCR-876) ManageableCollectionUtil should not throw "unsupported" JcrMapping exception
Date Wed, 25 Apr 2007 08:57:18 GMT

     [ https://issues.apache.org/jira/browse/JCR-876?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Jukka Zitting moved GRFT-99 to JCR-876:

          Component/s:     (was: JCR-Mapping)
    Affects Version/s:     (was: 1.0-a1-dev)
                  Key: JCR-876  (was: GRFT-99)
              Project: Jackrabbit  (was: Graffito)

> ManageableCollectionUtil should not throw "unsupported" JcrMapping exception
> ----------------------------------------------------------------------------
>                 Key: JCR-876
>                 URL: https://issues.apache.org/jira/browse/JCR-876
>             Project: Jackrabbit
>          Issue Type: Improvement
>          Components: jcr-mapping
>         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.
You can reply to this email to add a comment to the issue online.

View raw message