Interface GoldenPathQueryFactory

All Known Implementing Classes:
GoldenPathQueryFactoryImpl

public interface GoldenPathQueryFactory
Factory for GoldenPathQuery instances.

Sibling to GoldenPathSequenceAnalysisFactory (commit 317ea9c785); provides a Spring-injectable seam so callers do not instantiate GoldenPathQuery directly. Test contexts can register a primary bean that returns a Mockito mock, enabling fast variants of tests that exercise the alignment lookup pipeline without requiring a reachable UCSC GoldenPath database.

Each call to create(Taxon) returns a new GoldenPathQuery; the caller owns the lifecycle (typically via try-with-resources, since the returned instance implements AutoCloseable).

  • Method Details

    • create

      GoldenPathQuery create(Taxon taxon)
      Construct a new GoldenPathQuery for the given taxon.

      The returned instance holds JDBC resources and must be closed by the caller.

      Parameters:
      taxon - the taxon whose GoldenPath database should back the query
      Returns:
      a new, open GoldenPathQuery