Package org.jclouds.logging.jdk.config

Examples of org.jclouds.logging.jdk.config.JDKLoggingModule


   }

   @VisibleForTesting
   static void addLoggingModuleIfNotPresent(List<Module> modules) {
      if (!any(modules, instanceOf(LoggingModule.class)))
         modules.add(new JDKLoggingModule());
   }
View Full Code Here


                  S3Constants.PROPERTY_POOL_MAX_CONNECTIONS, config
                        .getMaxConnections()
                        + "");
         // TODO proxy host/port
         Module loggingModule = org.infinispan.util.logging.LogFactory.IS_LOG4J_AVAILABLE ? new Log4JLoggingModule()
               : new JDKLoggingModule();
         this.context = S3ContextFactory.createContext(config.getAwsAccessKey(),config.getAwsSecretKey()).withModules(new HttpNioConnectionPoolClientModule(), loggingModule).build();
         this.s3Service = context.getConnection();
         if (this.s3Service == null) {
            throw new S3ConnectionException("Could not connect");
         }
View Full Code Here

   public static LoggingModule firstOrJDKLoggingModule() {
      try {
         return find(ServiceLoader.load(LoggingModule.class),
               Predicates.not(Predicates.instanceOf(JDKLoggingModule.class)));
      } catch (NoSuchElementException e) {
         return new JDKLoggingModule();
      }
   }
View Full Code Here

   }

   @VisibleForTesting
   static void addLoggingModuleIfNotPresent(List<Module> modules) {
      if (!any(modules, instanceOf(LoggingModule.class)))
         modules.add(new JDKLoggingModule());
   }
View Full Code Here

   public static LoggingModule firstOrJDKLoggingModule() {
      try {
         return find(ServiceLoader.load(LoggingModule.class),
               Predicates.not(Predicates.instanceOf(JDKLoggingModule.class)));
      } catch (NoSuchElementException e) {
         return new JDKLoggingModule();
      }
   }
View Full Code Here

   }

   @VisibleForTesting
   static void addLoggingModuleIfNotPresent(List<Module> modules) {
      if (!any(modules, instanceOf(LoggingModule.class)))
         modules.add(new JDKLoggingModule());
   }
View Full Code Here

      return props;
   }

   @Override
   protected Injector getInjector() {
      return Guice.createInjector(new JDKLoggingModule(), new ServletModule() {
         @Override
         protected void configureServlets() {
            bind(new TypeLiteral<Iterable<View>>() {
            }).toInstance(GuiceServletConfig.this.views);
            serve("*.check").with(GetAllResourcesController.class);
 
View Full Code Here

   }

   @VisibleForTesting
   static void addLoggingModuleIfNotPresent(List<Module> modules) {
      if (!any(modules, instanceOf(LoggingModule.class)))
         modules.add(new JDKLoggingModule());
   }
View Full Code Here

   public static LoggingModule firstOrJDKLoggingModule() {
      try {
         return find(ServiceLoader.load(LoggingModule.class),
               Predicates.not(Predicates.instanceOf(JDKLoggingModule.class)));
      } catch (NoSuchElementException e) {
         return new JDKLoggingModule();
      }
   }
View Full Code Here

                  S3Constants.PROPERTY_POOL_MAX_CONNECTIONS, config
                        .getMaxConnections()
                        + "");
         // TODO proxy host/port
         Module loggingModule = org.infinispan.util.logging.LogFactory.IS_LOG4J_AVAILABLE ? new Log4JLoggingModule()
               : new JDKLoggingModule();
         this.context = S3ContextFactory.createS3Context(properties,
                                                         new HttpNioConnectionPoolClientModule(), loggingModule);
         this.s3Service = context.getConnection();
         if (this.s3Service == null) {
            throw new S3ConnectionException("Could not connect");
View Full Code Here

TOP

Related Classes of org.jclouds.logging.jdk.config.JDKLoggingModule

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.