[jboss-dev] Improving scanning performance

Scott Marlow smarlow at redhat.com
Sat Jun 13 07:57:52 EDT 2009


Ales Justin wrote:
>> Would it be possible to have "trace" logging that would show classes 
>> that are scanned and whether annotations were found?  I enabled trace 
>> for "AnnotationEnvironmentDeployer" but didn't see enough information.
>
> This is already there:
>
> package org.jboss.deployers.plugins.annotations;
>
> public class DefaultAnnotationEnvironment extends 
> WeakClassLoaderHolder implements AnnotationEnvironment, Serializable
>
>    void putAnnotation(Annotation annotation, ElementType type, String 
> className, Signature signature)
>    {
>       Class<? extends Annotation> annClass = annotation.annotationType();
>
>       if (log.isTraceEnabled())
>          log.trace("Adding annotation @" + annClass.getSimpleName() + 
> " for " + className + " at type " + type + ", signature: " + signature);

If trace is enabled, could we also show the classes that have no 
annotations?  Perhaps in GenericAnnotationResourceVisitor.visit()?  This 
will help me understand what should be in the list of includes and 
excludes (to help build the jboss-scanning.xml**). 





-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-development/attachments/20090613/0ea2ddf3/attachment.html 


More information about the jboss-development mailing list