[jboss-dev-forums] [Design of POJO Server] - Re: Getting runtime component name from attachment
alesj
do-not-reply at jboss.com
Mon Oct 8 19:46:16 EDT 2007
I guess this is a bug:
| AbstractManagedObjectFactory:
|
| public MetaValue getValue(BeanInfo beanInfo, ManagedProperty property, Serializable object)
| {
| ...
| // Look for a ManagementObjectID
| ManagementObjectID id = (ManagementObjectID) property.getAnnotations().get(ManagementObjectID.class.getName());
|
I guess it should be:
| // Look for a ManagementObjectRef
| ManagementObjectRef ref = (ManagementObjectRef) property.getAnnotations().get(ManagementObjectRef.class.getName());
| String moName = (ref != null ? ref.name() : value.getClass().getName());
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092808#4092808
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092808
More information about the jboss-dev-forums
mailing list