[jboss-dev-forums] [Design of POJO Server] - Re: Why do Topic/Queue descriptors need extra metadata in or

alesj do-not-reply at jboss.com
Fri Nov 21 08:54:18 EST 2008


"alesj" wrote : 
  | Does ServiceControllerContext even have similar logic?
  | 
I guess not, as I see this in SMDICF:

  |          // Looks for a ManagementObjectClass annotation that defines
  |          // an alternate class to scan for management annotations
  |          List<ServiceAnnotationMetaData> samlist = md.getAnnotations();
  |          for (ServiceAnnotationMetaData sam : samlist)
  |          {
  |             // Annotations are not yet introduced to the actual mbean
  |             // so just look for the annotation string
  |             String anString = sam.getAnnotation();
  |             if (anString.startsWith(MOCLASS_ANNOTATION))
  |             {
  |                Class<?> originalClass = moClass;
  |                ManagementObjectClass moc = (ManagementObjectClass)sam.getAnnotationInstance(loader);
  |                moClass = moc.code();
  |                log.debug("Using alternate class '" + moClass + "' for class " + originalClass);
  | 

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

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



More information about the jboss-dev-forums mailing list