]
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.