[jboss-jira] [JBoss JIRA] (JBMETA-220) Support JAXB style programming for RAR module

Jeff Zhang (JIRA) issues at jboss.org
Tue Dec 23 23:01:29 EST 2014


     [ https://issues.jboss.org/browse/JBMETA-220?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeff Zhang closed JBMETA-220.
-----------------------------
    Resolution: Out of Date


> Support JAXB style programming for RAR module
> ---------------------------------------------
>
>                 Key: JBMETA-220
>                 URL: https://issues.jboss.org/browse/JBMETA-220
>             Project: JBoss Metadata
>          Issue Type: Task
>            Reporter: Jesper Pedersen
>            Assignee: Jeff Zhang
>
> Currently we have standard get- and set- methods, like
>    @XmlElement(name="outbound-resourceadapter")
>    public void setOutboundRa(OutboundRaMetaData outboundRa) {
>       this.outboundRa = outboundRa;
>    }
>    public OutboundRaMetaData getOutboundRa() {
>       return outboundRa;
>    }
> We should support a JAXB style programming in the RAR module, and thereby creating any objects or lists that doesn't exists in the get-method, like
>    @XmlElement(name="outbound-resourceadapter")
>    public void setOutboundRa(OutboundRaMetaData outboundRa) {
>       this.outboundRa = outboundRa;
>    }
>    public OutboundRaMetaData getOutboundRa() {
>       if (outboundRa == null)
>          outboundRa = new OutboundRa();
>       return outboundRa;
>    }
> This will allow an easier merging between the annotation model and the XML model.



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the jboss-jira mailing list