Class FileStoreFactory

java.lang.Object
com.axelor.file.store.FileStoreFactory

public class FileStoreFactory extends Object
Factory class for creating and managing the Store instance used by the application.

This factory provides a unified access point to obtain the appropriate Store implementation based on the application configuration.


 Store store = FileStoreFactory.getStore();
 store.addFile(inputStream, "example.txt");
 
  • Method Details

    • getStore

      public static Store getStore()
      Retrieves the instance of the Store configured for the application.
      Returns:
      the active Store implementation
    • shutdown

      public static void shutdown()
      Shuts down the active Store instance, if one has been created.

      This allows for cleanup of any resources held by the underlying storage implementation.