Package webit.script.loaders.impl

Source Code of webit.script.loaders.impl.StringLoader

// Copyright (c) 2013-2014, Webit Team. All Rights Reserved.
package webit.script.loaders.impl;

import webit.script.loaders.Loader;
import webit.script.loaders.Resource;
import webit.script.loaders.impl.resources.StringResource;

/**
*
* @author Zqq
*/
public class StringLoader implements Loader {

    protected boolean enableCache;

    public Resource get(String name) {
        return new StringResource(name);
    }

    public String concat(String parent, String name) {
        //ignore parent
        return name;
    }

    public String normalize(String name) {
        return name;
    }

    public boolean isEnableCache(String name) {
        return enableCache;
    }

    public void setEnableCache(boolean enableCache) {
        this.enableCache = enableCache;
    }
}
TOP

Related Classes of webit.script.loaders.impl.StringLoader

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.