bind(ResultSetMappers.class).toProvider(ResultSetMappersProvider.class).in(Scopes.SINGLETON);
bind(DataSource.class).toProvider(GuiceDataSourceProvider.bind("platformlayer.jdbc.")).asEagerSingleton();
URLClassLoader urlClassLoader = (URLClassLoader) Thread.currentThread().getContextClassLoader();
JerseyAnnotationDiscovery discovery = new JerseyAnnotationDiscovery();
discovery.scan(urlClassLoader);
bind(AnnotationDiscovery.class).toInstance(discovery);
for (AnnotatedClass annotatedClass : discovery.findAnnotatedClasses(org.platformlayer.xaas.Module.class)) {
Class<?> moduleClass = annotatedClass.getSubjectClass();
log.info("Installing extension module: " + moduleClass);
com.google.inject.Module module;