[jboss-dev-forums] [Design of POJO Server] - Re: Unifying metadata
adrian@jboss.org
do-not-reply at jboss.com
Fri Sep 21 09:34:34 EDT 2007
"adrian at jboss.org" wrote :
| This works in the MC stuff, so its obviously not defined correctly in the annotations
| for the ejb stuff.
|
This is how you define it generically
| public class ListElementWildcard
| {
| private List<Element> wildcard;
|
| public List<Element> getWildcard()
| {
| return wildcard;
| }
|
| @XmlAnyElement(lax=true)
| public void setWildcard(List<Element> wildcard)
| {
| this.wildcard = wildcard;
| }
|
You can also make it recognise specific types, e.g. we could define
the known JMSContainerInvoker config, etc. by adding @XmlElements
and specific types but then you need to make List
if you also want it to have raw Elements.
The real problem is that it just isn't implemented
(at least in the version in the JBossXB project)
| @XmlType(name="invoker-proxy-bindingType")
| public class InvokerProxyBindingMetaData extends NamedMetaDataWithDescriptions
| {
| ...
|
| /** The proxy factory config */
| // TODO DOM private Element proxyFactoryConfig;
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4087232#4087232
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4087232
More information about the jboss-dev-forums
mailing list