jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephane Landelle (JIRA)" <j...@apache.org>
Subject [jira] Created: (JCR-1624) Proxies improvement
Date Fri, 23 May 2008 12:45:56 GMT
Proxies improvement
-------------------

                 Key: JCR-1624
                 URL: https://issues.apache.org/jira/browse/JCR-1624
             Project: Jackrabbit
          Issue Type: Improvement
          Components: jackrabbit-ocm
    Affects Versions: 1.5
         Environment: Mac OS X, Java 5
            Reporter: Stephane Landelle


1) Improvement :
I need to be able to detect when a bean is an OCM proxy and if it has already been loaded.
This kind of functionnality is for example on Hibernate with Hibernate.isInitialized(Object
proxy).
I have developped something similar : I have modified ProxyManagerImpl so it uses an InvocationHandler
instead of a LazyLoader. This way, I make my proxies implement a special interface whose methods
are intercepted.

2) Bug :
If a BeanConverter is specified, ObjectConverterImpl should pass it to the proxy CallBack
instead letting BeanLazyLoader use the default ObjectConverter. I think this is a bug, as
the behavior is different is bean property is proxified or not.

3) Improvement :
If a jcrType mapped on a java type is specified, ObjectConverterImpl should make a proxy of
this type, and not use the the bean property type. This is particularly useful when the bean
property type is an interface.

Sorry for reporting this as a bundle instead of seperate items, but I developped my patch
as a whole.  
Let me know if you need help on the enclosing patch.

Sincerely,

St├ęphane Landelle

-- 
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