The PersistenceService class is responsible for initializing and managing the lifecycle of the persistence layer configuration in the application. It generates the configuration, logs relevant details, and handles starting and stopping of the persistence layer.

Implements

Constructors

Methods

Constructors

Methods

  • Initializes the persistence layer configuration, sets up the connection details, and writes the configuration to a JSON file. It also starts the persistence layer. This method is essential for preparing the system to interact with the persistence layer.

    Returns void

    This method does not return a value.

  • Called when the component or object is being destroyed. This method is responsible for performing cleanup tasks to release resources or terminate processes, ensuring proper resource management. Specifically, it stops the associated layer by invoking the StopLayer method.

    Returns void

    Does not return any value.