jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christophe Lombart (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (JCR-876) ManageableCollectionUtil should not throw "unsupported" JcrMapping exception
Date Mon, 22 Sep 2008 21:14:44 GMT

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

Christophe Lombart resolved JCR-876.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.5

solved by the resolution of JCR-1325

> 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: jackrabbit-ocm
>         Environment: All
>            Reporter: Dan Connelly
>             Fix For: 1.5
>
>
> 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.


Mime
View raw message