Examples of VelocityPlugin


Examples of br.com.caelum.vraptor.templates.plugins.velocity.VelocityPlugin

      this.plugin = new FreemarkerPlugin(configs);
      logger.debug("Using Freemarker as Template Engine");
    }
   
    else if (isClassPresent("org.apache.velocity.Template")) {
      this.plugin = new VelocityPlugin(configs);
      logger.debug("Using Velocity as Template Engine");
    }
    
    else if (isClassPresent("org.fusesource.scalate.Template")) {   
      this.plugin = new ScalatePlugin(configs);     
View Full Code Here

Examples of com.alibaba.citrus.service.velocity.VelocityPlugin

public class PluginDelegator implements VelocityPlugin {
    public final static ThreadLocal<VelocityPlugin> pluginHolder = new ThreadLocal<VelocityPlugin>();

    public void init(VelocityConfiguration configuration) throws Exception {
        VelocityPlugin plugin = pluginHolder.get();

        if (plugin != null) {
            plugin.init(configuration);
        }
    }
View Full Code Here

Examples of com.alibaba.citrus.service.velocity.VelocityPlugin

            plugin.init(configuration);
        }
    }

    public Resource[] getMacros() throws IOException {
        VelocityPlugin plugin = pluginHolder.get();

        if (plugin != null) {
            return plugin.getMacros();
        }

        return null;
    }
View Full Code Here
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.