class KsqlContext implements AutoCloseable {

  public void close() {
    ksqlEngine.close();
    serviceContext.close();
  }

  @VisibleForTesting  KsqlContext(
      final ServiceContext serviceContext,
      final KsqlConfig ksqlConfig,
      final KsqlEngine ksqlEngine,
      final BiFunction<KsqlExecutionContext, ServiceContext, Injector> injectorFactory
  );

}