[ 
https://issues.apache.org/jira/browse/DIGESTER-135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12768293#action_12768293
 ] 

James Carman commented on DIGESTER-135:
---------------------------------------

The builder API would be a chaining API like you've shown above, but I think 
I'd like to introduce the idea of a "selector" for things such as text value of 
the element or attribute value of an element:

builder.forPath("/persons/person").createObject(Person.class).setProperty("firstName",
 attribute("fname"));

This is just off the top of my head.

> Digester rules defined through Java5 Annotatations
> --------------------------------------------------
>
>                 Key: DIGESTER-135
>                 URL: https://issues.apache.org/jira/browse/DIGESTER-135
>             Project: Commons Digester
>          Issue Type: Improvement
>    Affects Versions: 2.1
>            Reporter: Simone Tripodi
>            Priority: Minor
>             Fix For: 2.1
>
>         Attachments: DigesterAnnotations.patch
>
>
> Taking inspiration by Google-Guice, JAXB and JPA's annotations, the existing 
> package can be extended adding some facilities to configure the 
> commons-digester using the Java language metadata annotations.

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

Reply via email to