dev@jax-ws.java.net

Re: Proposal for WebServiceFeature Extension

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Fri, 20 Oct 2006 13:16:01 -0700

Rama Pulavarthi wrote:
> Even with kohsuke proposal, I am not sure how we can do this if the user
> changes the order or leaves some elements.

There's no such thing as order of attribute elements. There's no way to
distinguish unspecified values from the default values.

> Do we need to use Mirror API to figure out how to invoke the constructor?

No. Just use the normal reflection.

> And, still we may need a Marker interface WebServiceFeatureEx for all
> feature extensions to obey these rules.

No. If there's any constructor that takes @FeatureParameter, you can
handle it. Otherwise you can't. No marker interface necessary.



-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com