From 3de7fc77c7cda79de6b5699d0d9f2ba49a8dfa32 Mon Sep 17 00:00:00 2001 From: Jan Bartel Date: Wed, 19 Aug 2015 10:24:08 +1000 Subject: [PATCH] 474558 Debug log ServletContainerInitializer @HandlesTypes contents --- .../jetty/annotations/AnnotationConfiguration.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/jetty-annotations/src/main/java/org/eclipse/jetty/annotations/AnnotationConfiguration.java b/jetty-annotations/src/main/java/org/eclipse/jetty/annotations/AnnotationConfiguration.java index 0c507ba51c7..8713d2bbc3d 100644 --- a/jetty-annotations/src/main/java/org/eclipse/jetty/annotations/AnnotationConfiguration.java +++ b/jetty-annotations/src/main/java/org/eclipse/jetty/annotations/AnnotationConfiguration.java @@ -23,6 +23,7 @@ import java.net.MalformedURLException; import java.net.URI; import java.net.URL; import java.util.ArrayList; +import java.util.Arrays; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; @@ -664,6 +665,9 @@ public class AnnotationConfiguration extends AbstractConfiguration Class[] classes = annotation.value(); if (classes != null) { + + if (LOG.isDebugEnabled()){LOG.debug("HandlesTypes {} on initializer {}",Arrays.asList(classes),service.getClass());} + initializer = new ContainerInitializer(service, classes); //If we haven't already done so, we need to register a handler that will @@ -696,7 +700,7 @@ public class AnnotationConfiguration extends AbstractConfiguration else { initializer = new ContainerInitializer(service, null); - if (LOG.isDebugEnabled()) LOG.debug("No annotation on initializer "+service.getClass()); + if (LOG.isDebugEnabled()) LOG.debug("No HandlesTypes annotation on initializer "+service.getClass()); } initializers.add(initializer); @@ -928,7 +932,7 @@ public class AnnotationConfiguration extends AbstractConfiguration { int i=0; for (ServletContainerInitializer sci:nonExcludedInitializers) - LOG.debug("ServletContainerInitializer: {} {}",(++i), sci.getClass().getName()); + LOG.debug("ServletContainerInitializer: {} {} from {}",(++i), sci.getClass().getName(), sciResourceMap.get(sci)); } return nonExcludedInitializers; }