Class AutoCloseAnnotationUtils

java.lang.Object
org.antublue.test.engine.internal.AutoCloseAnnotationUtils

public class AutoCloseAnnotationUtils extends Object
Class to process @TestEngine.AutoClose annotations
  • Method Details

    • singleton

      public static AutoCloseAnnotationUtils singleton()
      Method to get the singleton instance
      Returns:
      the singleton instance
    • processAutoCloseAnnotatedFields

      public void processAutoCloseAnnotatedFields(Object object, String lifecycle, Consumer<Throwable> throwableConsumer)
      Method to process @TestEngine.AutoClose annotated fields for a specific scope
      Parameters:
      object - object
      lifecycle - lifecycle
      throwableConsumer - throwableConsumer