Interface GoldenPathSequenceAnalysisFactory
- All Known Implementing Classes:
GoldenPathSequenceAnalysisFactoryImpl
public interface GoldenPathSequenceAnalysisFactory
Factory for
GoldenPathSequenceAnalysis instances.
Provides a Spring-injectable seam so callers do not instantiate
GoldenPathSequenceAnalysis directly. Test contexts can register a
primary bean that returns a Mockito mock, allowing fast (non-GoldenPath)
variants of tests that exercise the processArrayDesign pipeline.
Each call to create(Taxon) returns a new GoldenPathSequenceAnalysis;
the caller owns the lifecycle (typically via try-with-resources, since the
returned instance implements AutoCloseable).
- Author:
- goldenpath-factory-refactor
-
Method Summary
Modifier and TypeMethodDescriptionConstruct a newGoldenPathSequenceAnalysisfor the given taxon.
-
Method Details
-
create
Construct a newGoldenPathSequenceAnalysisfor 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 analysis- Returns:
- a new, open
GoldenPathSequenceAnalysis
-