Allow overriding getUserDefinedFileAttributeView

Today the filesystem blobstore provider use the extended attributes of the
filesystem to store metadata. This is not always desirable as some filesystems
(such as NFSv3) do not support extended metadata.  The current source code does
not allow to change this easily. getUserDefinedFileAttributeView could easily
be overriden for this purpose and allow extensions that customize where the
metadata should be stored.

See also JCLOUDS-658
This commit is contained in:
Francois Rigault 2016-08-25 17:07:57 +02:00 committed by Zack Shoylev
parent 0fd013da06
commit dacd9825f0
1 changed files with 1 additions and 1 deletions

View File

@ -704,7 +704,7 @@ public class FilesystemStorageStrategyImpl implements LocalStorageStrategy {
return null;
}
private UserDefinedFileAttributeView getUserDefinedFileAttributeView(Path path) throws IOException {
protected UserDefinedFileAttributeView getUserDefinedFileAttributeView(Path path) throws IOException {
return getFileAttributeView(path, UserDefinedFileAttributeView.class);
}