Examples of Cleanup


Examples of Hexel.util.Cleanup

  public void setInput(PCInput input){
    this.input = input;
  }

  public Engine() {
    Cleanup cleanup = new Cleanup();
    this.chunks = new Chunks(cleanup, 10 * 10 * 10);
    this.thingSimulator = new ThingSimulator(cleanup, this, this.chunks);
    this.renderer = new Renderer(this, this.chunks);
    this.fps = new FrameRateTracker(5);
    this.chunkVisibilityManager = new ChunkVisibilityManager(this, this.chunks, this.renderer);
View Full Code Here

Examples of com.blazebit.cdi.cleanup.annotation.Cleanup

      String cleanupName) throws Exception {
    boolean invoked = false;

    if (!cleanupName.isEmpty()) {
      for (Method m : clazz.getMethods()) {
        Cleanup cleanup = m.getAnnotation(Cleanup.class);

        if (cleanup != null && cleanup.value().equals(cleanupName)) {
          m.invoke(target);
          invoked = true;
        }
      }
    }
View Full Code Here

Examples of com.blazebit.cdi.cleanup.annotation.Cleanup

      Class<?> cleanupClazz) throws Exception {
    boolean invoked = false;

    if (!cleanupClazz.equals(NullClass.class)) {
      for (Method m : clazz.getMethods()) {
        Cleanup cleanup = m.getAnnotation(Cleanup.class);

        if (cleanup != null && cleanup.value().equals(cleanupClazz)) {
          m.invoke(target);
          invoked = true;
        }
      }
    }
View Full Code Here

Examples of com.blazebit.cdi.cleanup.annotation.Cleanup

  private boolean invokeCleanups(Object target, Class<?> cleanupClazz)
      throws Exception {
    if (cleanupClazz != null) {
      for (Method m : target.getClass().getMethods()) {
        Cleanup cleanup = m.getAnnotation(Cleanup.class);

        if (cleanup != null && cleanup.value().equals(cleanupClazz)) {
          m.invoke(target);
          return true;
        }
      }
    } else {
View Full Code Here

Examples of org.jboss.arquillian.persistence.Cleanup

      return mode;
   }

   public TestExecutionPhase getCleanupTestPhase()
   {
      final Cleanup cleanupAnnotation = metadataExtractor.cleanup().fetchUsingFirst(testMethod);

      TestExecutionPhase phase = TestExecutionPhase.getDefault();
      if (cleanupAnnotation != null)
      {
         phase = cleanupAnnotation.phase();
      }

      return phase;
   }
View Full Code Here

Examples of org.jboss.arquillian.persistence.Cleanup

      return phase;
   }

   public CleanupStrategy getCleanupStragety()
   {
      final Cleanup cleanup = metadataExtractor.cleanup().fetchUsingFirst(testMethod);
      if (cleanup == null)
      {
         return CleanupStrategy.getDefault();
      }
      return cleanup.strategy();
   }
View Full Code Here

Examples of org.jboss.arquillian.persistence.Cleanup

      return mode;
   }

   public TestExecutionPhase getCleanupTestPhase()
   {
      final Cleanup cleanupAnnotation = metadataExtractor.cleanup().fetchUsingFirst(testMethod);

      TestExecutionPhase phase = configuration.getDefaultCleanupPhase();
      if (cleanupAnnotation != null && !TestExecutionPhase.DEFAULT.equals(cleanupAnnotation.phase()))
      {
         phase = cleanupAnnotation.phase();
      }

      return phase;
   }
View Full Code Here

Examples of org.jboss.arquillian.persistence.Cleanup

      return phase;
   }

   public CleanupStrategy getCleanupStragety()
   {
      final Cleanup cleanup = metadataExtractor.cleanup().fetchUsingFirst(testMethod);
      if (cleanup == null || CleanupStrategy.DEFAULT.equals(cleanup.strategy()))
      {
         return configuration.getDefaultCleanupStrategy();
      }
      return cleanup.strategy();
   }
View Full Code Here

Examples of org.jboss.arquillian.persistence.Cleanup

            || metadataExtractor.shouldMatchDataSet().isDefinedOn(testMethod);
   }

   public TestExecutionPhase getCleanupTestPhase()
   {
      final Cleanup cleanupAnnotation = metadataExtractor.cleanup().fetchUsingFirst(testMethod);

      TestExecutionPhase phase = configuration.getDefaultCleanupPhase();
      if (cleanupAnnotation != null && !TestExecutionPhase.DEFAULT.equals(cleanupAnnotation.phase()))
      {
         phase = cleanupAnnotation.phase();
      }

      return phase;
   }
View Full Code Here

Examples of org.jboss.arquillian.persistence.Cleanup

      return phase;
   }

   public CleanupStrategy getCleanupStrategy()
   {
      final Cleanup cleanup = metadataExtractor.cleanup().fetchUsingFirst(testMethod);
      if (cleanup == null || CleanupStrategy.DEFAULT.equals(cleanup.strategy()))
      {
         return configuration.getDefaultCleanupStrategy();
      }
      return cleanup.strategy();
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.