474558 Debug log ServletContainerInitializer @HandlesTypes contents
This commit is contained in:
parent
22babda3f9
commit
3de7fc77c7
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue