Module de.seggebaeing.sqlanalyzer
Class PromptableFactory
java.lang.Object
de.seggebaeing.sqlanalyzer.logic.promptable.util.PromptableFactory
A factory class responsible for creating instances of
Promptable
implementations based on the given PromptableApi
.
This class is implemented as a singleton to ensure a single point of access.
Access should be done via getInstance()
.
It supports both real API handlers (e.g., OpenAI, Gemini, Claude) and dummy implementations for testing and simulation.
-
Method Summary
Modifier and TypeMethodDescriptionstatic PromptableFactory
Creates and returns a newPromptable
instance for the specifiedPromptableApi
.
-
Method Details
-
getInstance
-
getPromptable
Creates and returns a newPromptable
instance for the specifiedPromptableApi
.Each call returns a fresh instance of the requested implementation.
- Parameters:
api
- thePromptableApi
specifying which implementation to create- Returns:
- a new instance of the corresponding
Promptable
-