Package freemarker.core

Examples of freemarker.core.FreeMarkerPermission


     * @throws SecurityException if there is a {@link SecurityManager} in the
     * JVM, {@link #isSecure()} is true and the calling code doesn't
     * have the "setTemplateLoader" {@link FreeMarkerPermission}
     */
    public synchronized void setTemplateLoader(TemplateLoader loader) {
        FreeMarkerPermission.checkPermission(this, new FreeMarkerPermission(
                "setTemplateLoader"));
        createTemplateCache(loader, cache.getCacheStorage());
    }
View Full Code Here


     */
    public void setSecure(boolean secure) {
        if(this.secure != secure) {
            if(secure == false) {
                FreeMarkerPermission.checkPermission(this,
                        new FreeMarkerPermission("setSecure"));
            }
            this.secure = secure;
            // Clearing the template cache so that templates are reloaded with
            // expected code sources.
            clearTemplateCache();
View Full Code Here

TOP

Related Classes of freemarker.core.FreeMarkerPermission

Copyright © 2018 www.massapicom. 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.