Example usage for org.apache.commons.vfs.impl FileContentInfoFilenameFactory FileContentInfoFilenameFactory

List of usage examples for org.apache.commons.vfs.impl FileContentInfoFilenameFactory FileContentInfoFilenameFactory

Introduction

In this page you can find the example usage for org.apache.commons.vfs.impl FileContentInfoFilenameFactory FileContentInfoFilenameFactory.

Prototype

FileContentInfoFilenameFactory

Source Link

Usage

From source file:org.sonatype.gshell.vfs.builder.FileSystemManagerBuilder.java

private void installDefaults() {
    if (filesCache == null) {
        filesCache = new SoftRefFilesCache();
    }/*from w  w w .  j  a v  a2s. c om*/

    if (fileReplicator == null || temporaryFileStore == null) {
        DefaultFileReplicator replicator = new DefaultFileReplicator();
        if (fileReplicator == null) {
            fileReplicator = new PrivilegedFileReplicator(replicator);
        }
        if (temporaryFileStore == null) {
            temporaryFileStore = replicator;
        }
    }

    if (fileContentInfoFactory == null) {
        fileContentInfoFactory = new FileContentInfoFilenameFactory();
    }

    if (defaultProvider == null) {
        defaultProvider = new UrlFileProvider();
    }
}