Package de.bsommerfeld.jshepherd.core
Interface PersistenceDelegateFactory
public interface PersistenceDelegateFactory
Base interface for all persistence delegate factories.
Implementations are responsible for creating format-specific persistence delegates.
-
Method Summary
Modifier and TypeMethodDescription<T> PersistenceDelegate<T> Creates a persistence delegate for the specified file path.String[]Returns the file extensions this factory supports (e.g., "json", "yaml", "yml").
-
Method Details
-
getSupportedExtensions
String[] getSupportedExtensions()Returns the file extensions this factory supports (e.g., "json", "yaml", "yml"). -
create
Creates a persistence delegate for the specified file path.- Type Parameters:
T- The configuration POJO type- Parameters:
filePath- Path to the configuration fileuseComplexSaveWithComments- Whether to use complex save with comments- Returns:
- A configured persistence delegate
-