Package org.gradle.logging.internal

Examples of org.gradle.logging.internal.AnsiConsole$Container


        } else {
            if (Boolean.TRUE.equals(operationParameters.isColorOutput())) {
                PrintStream outStr = new PrintStream(operationParameters.getStandardOutput());
                DefaultColorMap colourMap = new DefaultColorMap();
                colourMap.setUseColor(true);
                Console console = new AnsiConsole(outStr, outStr, colourMap, true);
                loggingServices = this.loggingServices.newColoredLogging(console);
            } else {
                loggingServices = this.loggingServices.newToolingApiLogging();
            }
            loggingServices.get(OutputEventRenderer.class).configure(operationParameters.getBuildLogLevel());
View Full Code Here


      {
         try
         {

            String guid = (String) statefulGuidField.get(ejbContext);
            Container container = Ejb3Registry.getContainer(guid);
            return container.getEjbName();
         }
         catch (IllegalArgumentException e)
         {
            throw new RuntimeException(e);
         }
View Full Code Here

   public Object invoke(Invocation invocation) throws Throwable
   {
      if (isLocal())
      {
         String guid = (String)invocation.getMetaData(IS_LOCAL, GUID);
         Container container = Ejb3Registry.getContainer(guid);
        
         return invokeLocal(invocation, container);
      }
      return invocation.invokeNext();
   }
View Full Code Here

   }
  
   public void test1()
   {
      ThreadlocalPool pool = new ThreadlocalPool();
      Container container = new MockContainer();
      int maxSize = -1;
      int timeout = -1;
      pool.initialize(container, maxSize, timeout);
      BeanContext ctx = pool.get();
      pool.release(ctx);
View Full Code Here

   }

   public void testInUse1()
   {
      ThreadlocalPool pool = new ThreadlocalPool();
      Container container = new MockContainer();
      int maxSize = -1;
      int timeout = -1;
      pool.initialize(container, maxSize, timeout);

      assertEquals(0, pool.getAvailableCount());
View Full Code Here

   }

   public void testWithThreads() throws Exception
   {
      final ThreadlocalPool pool = new ThreadlocalPool();
      Container container = new MockContainer();
      int maxSize = -1;
      int timeout = -1;
      pool.initialize(container, maxSize, timeout);
     
      Runnable r = new Runnable()
View Full Code Here

   }
  
   public void testMultipleWithThreads() throws Exception
   {
      final ThreadlocalPool pool = new ThreadlocalPool();
      Container container = new MockContainer();
      int maxSize = -1;
      int timeout = -1;
      pool.initialize(container, maxSize, timeout);
     
      Runnable r = new Runnable()
View Full Code Here

   }
  
   public void testMultipleRecursiveWithThreads() throws Exception
   {
      final ThreadlocalPool pool = new ThreadlocalPool();
      Container container = new MockContainer();
      int maxSize = -1;
      int timeout = -1;
      pool.initialize(container, maxSize, timeout);
     
      Runnable r = new Runnable()
View Full Code Here

   public Object invoke(Invocation invocation) throws Throwable
   {
      if (isLocal())
      {
         String guid = (String)invocation.getMetaData(IS_LOCAL, GUID);
         Container container = Ejb3Registry.getContainer(guid);
        
         return invokeLocal(invocation, container);
      }
      return invocation.invokeNext();
   }
View Full Code Here

                     mappedName = "java:comp/UserTransaction";
                  }
               }
               else if (TimerService.class.getName().equals(envRef.getType()))
               {
                  final Container ic = (Container) container;
                  InjectorFactory<?> factory = new InjectorFactory<TimerServicePropertyInjector>()
                  {
                     public TimerServicePropertyInjector create(BeanProperty property)
                     {
                        return new TimerServicePropertyInjector(property, ic);
View Full Code Here

TOP

Related Classes of org.gradle.logging.internal.AnsiConsole$Container

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.