Package org.platformlayer.xaas.discovery

Examples of org.platformlayer.xaas.discovery.JerseyAnnotationDiscovery


    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;
View Full Code Here

TOP

Related Classes of org.platformlayer.xaas.discovery.JerseyAnnotationDiscovery

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.