Class Capturer

java.lang.Object
org.burningwave.tools.dependencies.Capturer
All Implemented Interfaces:
AutoCloseable, org.burningwave.core.Cleanable, org.burningwave.core.Closeable, org.burningwave.core.Component, org.burningwave.core.Identifiable, org.burningwave.core.iterable.Properties.Listener, org.burningwave.core.ManagedLogger, org.burningwave.core.Memorizer
Direct Known Subclasses:
TwoPassCapturer

public class Capturer
extends Object
implements org.burningwave.core.Component
  • Nested Class Summary

    Nested Classes
    Modifier and Type Class Description
    static class  Capturer.Result  

    Nested classes/interfaces inherited from interface org.burningwave.core.ManagedLogger

    org.burningwave.core.ManagedLogger.Repository
  • Field Summary

    Fields
    Modifier and Type Field Description
    protected static String ADDITIONAL_RESOURCES_PATH  
    protected static String BURNINGWAVE_CLASSES_RELATIVE_DESTINATION_PATH  
  • Method Summary

    Modifier and Type Method Description
    Capturer.Result capture​(String mainClassName, String[] mainMethodAruments, Collection<String> baseClassPaths, org.burningwave.core.function.TriConsumer<String,​String,​ByteBuffer> resourceConsumer, boolean includeMainClass, Long continueToCaptureAfterSimulatorClassEndExecutionFor)  
    Capturer.Result capture​(String mainClassName, Collection<String> baseClassPaths, org.burningwave.core.function.TriConsumer<String,​String,​ByteBuffer> resourceConsumer, boolean includeMainClass, Long continueToCaptureAfterSimulatorClassEndExecutionFor)  
    Capturer.Result captureAndStore​(String mainClassName, String[] mainMethodAruments, Collection<String> baseClassPaths, String destinationPath, boolean includeMainClass, Long continueToCaptureAfterSimulatorClassEndExecutionFor)  
    Capturer.Result captureAndStore​(String mainClassName, Collection<String> baseClassPaths, String destinationPath, boolean includeMainClass, Long continueToCaptureAfterSimulatorClassEndExecutionFor)  
    static Capturer create​(org.burningwave.core.assembler.ComponentSupplier componentSupplier)  
    static Capturer getInstance()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.burningwave.core.Cleanable

    clear

    Methods inherited from interface org.burningwave.core.Closeable

    close, closeResources, closeResources, createCloseResoucesTask, createCloseResoucesTask

    Methods inherited from interface org.burningwave.core.Identifiable

    getId, getOperationId

    Methods inherited from interface org.burningwave.core.ManagedLogger

    logDebug, logDebug, logError, logError, logError, logError, logError, logInfo, logInfo, logTrace, logTrace, logWarn, logWarn

    Methods inherited from interface org.burningwave.core.Memorizer

    getOrCreateTemporaryFolder, getOrCreateTemporaryFolder, getTemporaryFolderPrefix

    Methods inherited from interface org.burningwave.core.iterable.Properties.Listener

    listenTo, processChangeNotification, unregister
  • Field Details

    • ADDITIONAL_RESOURCES_PATH

      protected static final String ADDITIONAL_RESOURCES_PATH
      See Also:
      Constant Field Values
    • BURNINGWAVE_CLASSES_RELATIVE_DESTINATION_PATH

      protected static final String BURNINGWAVE_CLASSES_RELATIVE_DESTINATION_PATH
      See Also:
      Constant Field Values
  • Method Details

    • create

      public static Capturer create​(org.burningwave.core.assembler.ComponentSupplier componentSupplier)
    • getInstance

      public static Capturer getInstance()
    • capture

      public Capturer.Result capture​(String mainClassName, Collection<String> baseClassPaths, org.burningwave.core.function.TriConsumer<String,​String,​ByteBuffer> resourceConsumer, boolean includeMainClass, Long continueToCaptureAfterSimulatorClassEndExecutionFor)
    • capture

      public Capturer.Result capture​(String mainClassName, String[] mainMethodAruments, Collection<String> baseClassPaths, org.burningwave.core.function.TriConsumer<String,​String,​ByteBuffer> resourceConsumer, boolean includeMainClass, Long continueToCaptureAfterSimulatorClassEndExecutionFor)
    • captureAndStore

      public Capturer.Result captureAndStore​(String mainClassName, Collection<String> baseClassPaths, String destinationPath, boolean includeMainClass, Long continueToCaptureAfterSimulatorClassEndExecutionFor)
    • captureAndStore

      public Capturer.Result captureAndStore​(String mainClassName, String[] mainMethodAruments, Collection<String> baseClassPaths, String destinationPath, boolean includeMainClass, Long continueToCaptureAfterSimulatorClassEndExecutionFor)