Package com.axelor.file.store
Class FileStoreFactory
java.lang.Object
com.axelor.file.store.FileStoreFactory
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 Summary
-
Method Details
-
getStore
Retrieves the instance of theStore
configured for the application.- Returns:
- the active
Store
implementation
-
shutdown
public static void shutdown()Shuts down the activeStore
instance, if one has been created.This allows for cleanup of any resources held by the underlying storage implementation.
-