Hi,
That's annotation by parameter.
Reposted the sample for illustration. If you guys don't like the name
DataParam/DataResult, please help me find better ones.
Thanks,
Raymond
@Remotable
@DataBinding(name = "sdo") // Interface-level databinding declaration
public interface Dummy {
// Order and Shipment are SDO DataObject(s), Date is a plain java object
// @DataParam marks the parameter and @DataResult marks the return
value, please note @DataResult applies to "METHOD". Both are optional
@DataResult Shipment createShipment(@DataParam Order order, Date
deadline);
@DataBinding(name = "jaxb", attributes = { @DataAttr(name =
"contextPath", value = "com.example.ipo.jaxb") }) // operation-level
databinding
@DataResult CreditReport checkCredit(@DataParam Customer customer);
@DataBinding(name = "xml:string")
@DataResult String evaluate(@DataParam String xml, String xpath);
}
Thanks,
Raymond
----- Original Message -----
From: "Jeremy Boynes" <[EMAIL PROTECTED]>
To: <tuscany-dev@ws.apache.org>
Sent: Friday, September 29, 2006 8:47 AM
Subject: Re: Parameter-level databinding support
On Sep 29, 2006, at 8:41 AM, Raymond Feng wrote:
Hi, Jim.
That's my proposal.
Venkat, I'm a bit worried to use ASM for this purpose. I agree with Jim
that annotating by parameters is consistent with CDI.
If there's no objections, I'll make the changes based on my proposal.
Is that with the indexes or by adding annotations to the parameters?
--
Jeremy
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]