diff --git a/pom.xml b/pom.xml
index 244b81c..8cd4e3e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -36,9 +36,15 @@
org.reflections
reflections
- 0.9.9-RC1
+ 0.9.10
-
+
+
+ com.google.guava
+ guava
+ 18.0
+
+
org.gcube.core
common-smartgears
diff --git a/src/main/java/org/gcube/smartgears/ContextListener.java b/src/main/java/org/gcube/smartgears/ContextListener.java
index d9ec729..1fc582f 100644
--- a/src/main/java/org/gcube/smartgears/ContextListener.java
+++ b/src/main/java/org/gcube/smartgears/ContextListener.java
@@ -10,6 +10,7 @@ import javax.servlet.annotation.WebListener;
import org.gcube.smartgears.annotations.ManagedBy;
import org.gcube.smartgears.context.application.ApplicationContext;
import org.reflections.Reflections;
+import org.reflections.scanners.SubTypesScanner;
import org.reflections.scanners.TypeAnnotationsScanner;
import org.reflections.util.ClasspathHelper;
import org.reflections.util.ConfigurationBuilder;
@@ -43,8 +44,10 @@ public class ContextListener implements ServletContextListener {
private void retrieveAndRegisterManagers(ApplicationContext context) {
- Reflections reflection = new ConfigurationBuilder().addUrls(ClasspathHelper.forClassLoader()).setScanners(new TypeAnnotationsScanner()).build();
-
+ ConfigurationBuilder reflectionConf = new ConfigurationBuilder().addUrls(ClasspathHelper.forClassLoader()).setScanners(new TypeAnnotationsScanner(), new SubTypesScanner());
+
+ Reflections reflection = new Reflections(reflectionConf);
+
Set> toInitialize = reflection.getTypesAnnotatedWith(ManagedBy.class);
Set> managers = new HashSet>();
for (Class> initializer: toInitialize ){