Anyone have any ideas on this?

- Patrick.



Patrick Crocker wrote:
> 
> I'm looking for a way to have a generated XMLBean interface extend an
> interface.  At first, I thought that the Extension Interfaces Feature
> was what I needed.  However, I have no need to implement the required
> static handler.
> 
> For example:
> 
> public interface MyBean {
>   String getName();
>   void setName(String name);
> }
> 
> I want the generated XMLBean interface "MyXmlBean" to extend "MyBean".
>  Assuming that the "MyXmlBean" interface was generated with the same
> method signatures as the "MyBean" interface based on the xsd,
> everything will work out.
> 
> This enables my service API to reference the MyBean interface without
> having to depend on the generated XMLBeans which, of course, allows me
> to replace the XMLBeans implementation with something else if desired.
> 
> But... the requirement imposed by the Extension Interface Feature
> demands a static handler...  I could write a static handler for the
> interface, but this becomes extremely messy when dealing with a large
> domain model.
> 
> Any hints?
> 
> - Patrick Crocker.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Extension-Interfaces-without-handlers-tp19005369p21479444.html
Sent from the Xml Beans - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to