Package org.platformlayer.extensions

Examples of org.platformlayer.extensions.Extensions


      TimeZone.setDefault(TimeZone.getTimeZone("UTC"));

      Discovery discovery = Discovery.build();
      ConfigurationImpl configuration = ConfigurationImpl.load();

      Extensions extensions = new Extensions(configuration, discovery);

      List<Module> modules = Lists.newArrayList();
      modules.add(new NullMetricsModule());
      modules.add(new GuiceXaasConfig(configuration));
      modules.add(new ConfigurationModule(configuration));
      modules.add(new CacheModule());
      modules.add(new JdbcGuiceModule());
      modules.add(new PlatformLayerServletModule(extensions));
      modules.add(new PlatformlayerValidationModule());

      Injector injector = extensions.createInjector(configuration, modules);

      ResultSetMappersProvider provider = injector.getInstance(ResultSetMappersProvider.class);
      provider.addAll(ItemEntity.class, TagEntity.class, SchedulerRecordEntity.class, JobEntity.class,
          JobExecutionEntity.class);

      extensions.addEntities(provider);

      StandaloneXaasWebserver server = injector.getInstance(StandaloneXaasWebserver.class);

      // Temporary hack
      if (args.length != 0) {
View Full Code Here


    modules.add(configurationModule);

    Discovery discovery = Discovery.build();

    ConfigurationImpl configuration = configurationModule.getConfiguration();
    Extensions extensions = new Extensions(configuration, discovery);

    modules.add(new CacheModule());
    modules.add(new GuiceAuthenticationConfig());
    modules.add(new KeystoneJdbcModule());
    modules.add(new KeystoneOpsUserModule());
View Full Code Here

TOP

Related Classes of org.platformlayer.extensions.Extensions

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.