[jboss-dev-forums] [Design of POJO Server] - Re: General Discussion on MetaTypes assigned to certain Mana
bytor99999
do-not-reply at jboss.com
Thu Jan 31 14:45:38 EST 2008
JMS Destinations
The following three
serverPeer=ManagedProperty{serverPeer,serverPeer,metaType=MutableCompositeMetaType{javax.management.ObjectName items=[name=MBeanServer type=javax.management.MBeanServer], [name=canonicalKeyPropertyListString type=java.lang.String], [name=canonicalName type=java.lang.String], [name=domain type=java.lang.String], [name=domainPattern type=java.lang.Boolean], [name=keyPropertyList type=java.util.Map], [name=keyPropertyListString type=java.lang.String], [name=pattern type=java.lang.Boolean], [name=propertyPattern type=java.lang.Boolean]}}
expiryQueue=ManagedProperty{expiryQueue,expiryQueue,metaType=MutableCompositeMetaType{javax.management.ObjectName items=[name=MBeanServer type=javax.management.MBeanServer], [name=canonicalKeyPropertyListString type=java.lang.String], [name=canonicalName type=java.lang.String], [name=domain type=java.lang.String], [name=domainPattern type=java.lang.Boolean], [name=keyPropertyList type=java.util.Map], [name=keyPropertyListString type=java.lang.String], [name=pattern type=java.lang.Boolean], [name=propertyPattern type=java.lang.Boolean]}},
DLQ=ManagedProperty{DLQ,DLQ,metaType=MutableCompositeMetaType{javax.management.ObjectName items=[name=MBeanServer type=javax.management.MBeanServer], [name=canonicalKeyPropertyListString type=java.lang.String], [name=canonicalName type=java.lang.String], [name=domain type=java.lang.String], [name=domainPattern type=java.lang.Boolean], [name=keyPropertyList type=java.util.Map], [name=keyPropertyListString type=java.lang.String], [name=pattern type=java.lang.Boolean], [name=propertyPattern type=java.lang.Boolean]}}, name=ManagedProperty{name,name,metaType=SimpleMetaType:java.lang.String},
To be consistent and also really help me out. Shouldn't the items in a Map also be of a MetaType instead of direct Java types? Maybe even the keys.
If properties nest in terms of types, like a List of Maps or a Map which has some Lists which are Lists of Maps, it makes it easier to read and create adapters when you are always are dealing directly with MetaTypes and MetaValues.
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125272#4125272
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125272
More information about the jboss-dev-forums
mailing list