[jboss-cvs] JBossAS SVN: r64451 - projects/microcontainer/trunk/kernel/src/main/org/jboss/kernel/plugins/annotations.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Aug 3 09:14:40 EDT 2007


Author: alesj
Date: 2007-08-03 09:14:40 -0400 (Fri, 03 Aug 2007)
New Revision: 64451

Modified:
   projects/microcontainer/trunk/kernel/src/main/org/jboss/kernel/plugins/annotations/AbstractAnnotationPlugin.java
Log:
Warn when suspecting missing impl.

Modified: projects/microcontainer/trunk/kernel/src/main/org/jboss/kernel/plugins/annotations/AbstractAnnotationPlugin.java
===================================================================
--- projects/microcontainer/trunk/kernel/src/main/org/jboss/kernel/plugins/annotations/AbstractAnnotationPlugin.java	2007-08-03 13:09:36 UTC (rev 64450)
+++ projects/microcontainer/trunk/kernel/src/main/org/jboss/kernel/plugins/annotations/AbstractAnnotationPlugin.java	2007-08-03 13:14:40 UTC (rev 64451)
@@ -38,6 +38,7 @@
 import org.jboss.metadata.spi.retrieval.MetaDataRetrieval;
 import org.jboss.reflect.spi.AnnotatedInfo;
 import org.jboss.util.JBossObject;
+import org.jboss.util.JBossStringBuilder;
 
 /**
  * @param <T> info type
@@ -109,6 +110,7 @@
 
    protected List<? extends MetaDataVisitorNode> internalApplyAnnotation(T info, C annotation, BeanMetaData beanMetaData) throws Throwable
    {
+      log.warn("Probably missing annotation apply implementation: " + this);
       return Collections.emptyList();
    }
 
@@ -128,4 +130,14 @@
       }
    }
 
+   protected void toString(JBossStringBuilder buffer)
+   {
+      buffer.append("@annotation=").append(annotation);
+      buffer.append(" ,types=").append(types);
+   }
+
+   public void toShortString(JBossStringBuilder buffer)
+   {
+      buffer.append("@annotation=").append(annotation);
+   }
 }
\ No newline at end of file




More information about the jboss-cvs-commits mailing list