Package org.apache.velocity.tools.config

Examples of org.apache.velocity.tools.config.EasyFactoryConfiguration


*/
public class tools
{
    public static FactoryConfiguration getConfiguration()
    {
        EasyFactoryConfiguration easy = new EasyFactoryConfiguration();
        easy.number("version", 2.0);
        easy.toolbox("request")
                .property("locale", Locale.US)
                .tool(ViewRenderTool.class);
        easy.toolbox("application")
                .tool("calc", MathTool.class)
                .tool(NumberTool.class)
                    .property("locale", Locale.FRENCH);
        return easy;
    }
View Full Code Here


*/
public class tools
{
    public static FactoryConfiguration getConfiguration()
    {
        EasyFactoryConfiguration easy = new EasyFactoryConfiguration();
        easy.number("version", 2.0);
        easy.toolbox("request")
                .property("locale", Locale.US)
                .tool(ResourceTool.class);
        easy.toolbox("application")
                .tool("calc", MathTool.class)
                .tool(NumberTool.class)
                    .property("locale", Locale.FRENCH);
        return easy;
    }
View Full Code Here

TOP

Related Classes of org.apache.velocity.tools.config.EasyFactoryConfiguration

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.