Package io.jmix.core.impl
Class FileStorageLocatorImpl
java.lang.Object
io.jmix.core.impl.FileStorageLocatorImpl
- All Implemented Interfaces:
FileStorageLocator
@Component("core_FileStorageLocator")
public class FileStorageLocatorImpl
extends Object
implements FileStorageLocator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected <T extends FileStorage>
TgetByBeanName
(String beanName) <T extends FileStorage>
TReturns the file storage with the given name determined byFileStorage.getStorageName()
.<T extends FileStorage>
TReturns the default file storage of the application.protected void
-
Constructor Details
-
FileStorageLocatorImpl
public FileStorageLocatorImpl()
-
-
Method Details
-
initStoragesByNames
@PostConstruct protected void initStoragesByNames() -
getByBeanName
-
getByName
Description copied from interface:FileStorageLocator
Returns the file storage with the given name determined byFileStorage.getStorageName()
.- Specified by:
getByName
in interfaceFileStorageLocator
- Parameters:
storageName
- file storage name- Returns:
- file storage
-
getDefault
Description copied from interface:FileStorageLocator
Returns the default file storage of the application.- Specified by:
getDefault
in interfaceFileStorageLocator
- Returns:
- file storage
-