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

Jesper Pedersen (JIRA) jira-events at lists.jboss.org
Tue Sep 1 10:18:23 EDT 2009


Support JAXB style programming for RAR module
---------------------------------------------

                 Key: JBMETA-220
                 URL: https://jira.jboss.org/jira/browse/JBMETA-220
             Project: JBoss Metadata
          Issue Type: Task
      Security Level: Public (Everyone can see)
            Reporter: Jesper Pedersen
            Assignee: Jeff Zhang
             Fix For: 2.0.0.CR1


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 is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list