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 Type
    Method
    Description
    create(Path filePath, boolean useComplexSaveWithComments)
    Creates a persistence delegate for the specified file path.
    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

      <T> PersistenceDelegate<T> create(Path filePath, boolean useComplexSaveWithComments)
      Creates a persistence delegate for the specified file path.
      Type Parameters:
      T - The configuration POJO type
      Parameters:
      filePath - Path to the configuration file
      useComplexSaveWithComments - Whether to use complex save with comments
      Returns:
      A configured persistence delegate