Package org.jboss.fresh.vfs.impl.disk

Source Code of org.jboss.fresh.vfs.impl.disk.DiskVFSMetaFactory

package org.jboss.fresh.vfs.impl.disk;

import org.jboss.fresh.vfs.VFSMeta;
import org.jboss.fresh.vfs.VFSMetaFactory;

import java.util.Properties;


public class DiskVFSMetaFactory implements VFSMetaFactory {

    public VFSMeta create(Properties p) throws Exception {
        if (p == null)
            p = System.getProperties();

        String fsroot = p.getProperty("diskfs.root", "");
        if("".equals(fsroot)) throw new RuntimeException("diskfs.root property not specified - it is required.");
        VFSMeta meta = new DiskVFSMeta(fsroot);

        return meta;
    }

}
TOP

Related Classes of org.jboss.fresh.vfs.impl.disk.DiskVFSMetaFactory

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.