All Downloads are FREE. Search and download functionalities are using the official Maven repository.

webit.script.loaders.Loader Maven / Gradle / Ivy

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

public interface Loader {

    /**
     * get template's Resource by it's name.
     *
     * @param name template's name
     * @return Resource
     */
    Resource get(String name);

    /**
     * get child template name by parent template name and relative name.
     *
     * @param parent parent template's name
     * @param name relative name
     * @return child template's name
     */
    String concat(String parent, String name);

    /**
     * normalize a template's name.
     *
     * @param name template's name
     * @return normalized name
     */
    String normalize(String name);

    /**
     * if this template need to be cached.
     *
     * @param name template's name
     * @return boolean
     */
    boolean isEnableCache(String name);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy