jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carsten Ziegeler <cziege...@apache.org>
Subject Re: [OCM] DynaBean support
Date Tue, 23 Oct 2007 11:55:22 GMT
Jukka Zitting wrote:
> Hi,
> 
> The current OCM require existing Java classes when mapping JCR content
> to Java objects. This introduces a relatively high entry barrier for
> various scripting environments, where you just want access to JavaBean
> properties as name-value pairs without having to set up explicit
> content mappings.
> 
> To make life easier for such environments I'd like to propose
> implementing a JCR binding for the DynaBean concept [1] in Commons
> BeanUtils.
> 
> [1] http://commons.apache.org/beanutils/commons-beanutils-1.7.0/docs/api/org/apache/commons/beanutils/package-summary.html#dynamic
> 
I'm not against support for DynaBeans but what about an even easier
approach like for example Apache iBatis is doing? In iBatis you can just
 use java.util.Map (or an implementation of it if you want to read stuff).

Carsten

-- 
Carsten Ziegeler
cziegeler@apache.org

Mime
View raw message