Is there a way with XB to return a different type, depending on the XML data? 
As in, instead of just Person, have an interface Person, but concrete classes 
of GreenPerson and PurplePerson?

Actually, looking at it, it seems one could do that based on the Attributes, 
but what if you need to decide later on down the line?

What I'd like to do is use (from admin-console) the  
org\jboss\admin\model\datasource\DataSource and its concrete classes and return 
a ConnectionPool or NoTxDataSource, etc depending on what the XML says. Is 
there a way to decide the type of object after the first line of XML? If you 
have an example let me know, I checked the testsuite examples and didn't see 
anything that jumped out at me.

Thanks,

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3868998#3868998

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3868998


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-Development mailing list
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to