public interface FileStorageLocator
If exactly one file storage registered in the application, this file storage is considered as the default
file storage of the application. If more than one file storage registered, the default file storage
should be specified in the jmix.core.defaultFileStorage
application property.
Modifier and Type | Method and Description |
---|---|
<T extends FileStorage> |
getByName(java.lang.String storageName)
Returns the file storage with the given name determined by
FileStorage.getStorageName() . |
<T extends FileStorage> |
getDefault()
Returns the default file storage of the application.
|
<T extends FileStorage> T getByName(java.lang.String storageName)
FileStorage.getStorageName()
.storageName
- file storage namejava.lang.IllegalArgumentException
- if no file storage with the given name found<T extends FileStorage> T getDefault()
java.lang.IllegalStateException
- if no file storage registered in the application
or there are more than one file storage registered and
the default file storage is not specified
in the jmix.core.defaultFileStorage
application property.