[jira] Commented: (JCR-1100) Support for dynamic mixins

2007-08-31 Thread Christophe Lombart (JIRA)

[ 
https://issues.apache.org/jira/browse/JCR-1100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12524046
 ] 

Christophe Lombart commented on JCR-1100:
-

Thanks for your help in this area. 

A couple of comments : 

1/ Interface issue : Agree but I'm not sure that you have to use interfaces to 
support proxy with CGLIB. For example,  we are currently using proxies without 
interface (with cglib) to make lazy loading on bean and collection fields. it 
is just a comment because I don't know if we can use the same approach to 
support mixin via proxies. 

2/ Send us your diff and we can refactor together. It should be nice if you 
have already a small unit test.  By this way, we can work review the code 
faster. 








 Support for dynamic mixins
 --

 Key: JCR-1100
 URL: https://issues.apache.org/jira/browse/JCR-1100
 Project: Jackrabbit
  Issue Type: New Feature
  Components: jcr-mapping
Affects Versions: 1.3.1
Reporter: Padraic Hannon

 JCR allows one to add mixins to nodes dynamically. However, within the ocm 
 code one cannot readily add mixins dynamically to objects. This feature would 
 allow jcr nodes to be updated with a mixin and ocm to read that node and 
 ensure an object is created correctly. Additionally for a passed in object 
 upon storage the ocm would inspect it and ensure all mixed in object fields 
 are added to the class descriptor. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (JCR-1100) Support for dynamic mixins

2007-08-31 Thread Padraic Hannon (JIRA)

[ 
https://issues.apache.org/jira/browse/JCR-1100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12524136
 ] 

Padraic Hannon commented on JCR-1100:
-

1) I was thinking the same, but then I thought it might be nice for someone to 
be able to cast the mixin proxy to an interface for easy coding. Perhaps the 
mixin proxy is not the best way to go?

2) Working on cleaning up the code to upload some diffs. My original testing 
got a bit hacky so I want to clean it up before I share it.




 Support for dynamic mixins
 --

 Key: JCR-1100
 URL: https://issues.apache.org/jira/browse/JCR-1100
 Project: Jackrabbit
  Issue Type: New Feature
  Components: jcr-mapping
Affects Versions: 1.3.1
Reporter: Padraic Hannon

 JCR allows one to add mixins to nodes dynamically. However, within the ocm 
 code one cannot readily add mixins dynamically to objects. This feature would 
 allow jcr nodes to be updated with a mixin and ocm to read that node and 
 ensure an object is created correctly. Additionally for a passed in object 
 upon storage the ocm would inspect it and ensure all mixed in object fields 
 are added to the class descriptor. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (JCR-1100) Support for dynamic mixins

2007-08-31 Thread Padraic Hannon (JIRA)

[ 
https://issues.apache.org/jira/browse/JCR-1100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12524159
 ] 

Padraic Hannon commented on JCR-1100:
-

I've attached the code as I have it so far. Also included is a simple test case 
which builds a node, inserts it, adds a mixin stores the updated node and 
finally retrieves it.

 Support for dynamic mixins
 --

 Key: JCR-1100
 URL: https://issues.apache.org/jira/browse/JCR-1100
 Project: Jackrabbit
  Issue Type: New Feature
  Components: jcr-mapping
Affects Versions: 1.3.1
Reporter: Padraic Hannon
 Attachments: dynamicMixin.diff


 JCR allows one to add mixins to nodes dynamically. However, within the ocm 
 code one cannot readily add mixins dynamically to objects. This feature would 
 allow jcr nodes to be updated with a mixin and ocm to read that node and 
 ensure an object is created correctly. Additionally for a passed in object 
 upon storage the ocm would inspect it and ensure all mixed in object fields 
 are added to the class descriptor. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (JCR-1100) Support for dynamic mixins

2007-08-30 Thread Padraic Hannon (JIRA)

[ 
https://issues.apache.org/jira/browse/JCR-1100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12523960
 ] 

Padraic Hannon commented on JCR-1100:
-

I currently have this working for persistence using cglib. However, it requires 
moving away from pojo's and requires having interfaces defined to create the 
proxy dynamically. I can upload diffs with the code, however, I think the 
solution would be to not have to resort to creating interfaces for everything.

 Support for dynamic mixins
 --

 Key: JCR-1100
 URL: https://issues.apache.org/jira/browse/JCR-1100
 Project: Jackrabbit
  Issue Type: New Feature
  Components: jcr-mapping
Affects Versions: 1.3.1
Reporter: Padraic Hannon

 JCR allows one to add mixins to nodes dynamically. However, within the ocm 
 code one cannot readily add mixins dynamically to objects. This feature would 
 allow jcr nodes to be updated with a mixin and ocm to read that node and 
 ensure an object is created correctly. Additionally for a passed in object 
 upon storage the ocm would inspect it and ensure all mixed in object fields 
 are added to the class descriptor. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.