Class HypoContext

java.lang.Object
com.demonwav.hypo.core.HypoContext
All Implemented Interfaces:
AutoCloseable

public final class HypoContext extends Object implements AutoCloseable
Core context for Hypo executions. A context contains 4 major components:
  1. The core provider - The classes to analyze
  2. The context provider - Additional classes on the classpath for completing the analysis of the core provider
  3. The current configuration - Global configuration values
  4. The current executor - The shared executor to use for all multi-threaded work

When a context is closed both providers are closed and the executor is shut down. The context should never be closed while processes in the executor are still running. To put that another way, any operations which use the executor should wait for all submitted jobs to complete before continuing.

Create new instances with builder().