Package org.apache.velocity.runtime.log

Examples of org.apache.velocity.runtime.log.Log


        return velocity.getLog();
    }

    protected final void debug(String msg, Object... args)
    {
        Log log = getLog();
        if (log != null && log.isDebugEnabled())
        {
            log.debug(String.format(msg, args));
        }
    }
View Full Code Here


    }

    public void testPrimitives()
      throws Exception
    {
  Log log = Velocity.getLog();
 
        ClassMap c = new ClassMap(TestClassMap.class, log);
        assertNotNull(c.findMethod("setBoolean",   new Object[] { Boolean.TRUE }));
        assertNotNull(c.findMethod("setByte",      new Object[] { new Byte((byte) 4)}));
        assertNotNull(c.findMethod("setCharacter", new Object[] { new Character('c')}));
View Full Code Here

    }

    public void testPrimitives()
      throws Exception
    {
  Log log = Velocity.getLog();
 
        ClassMap c = new ClassMap(TestClassMap.class, log);
        assertNotNull(c.findMethod("setBoolean",   new Object[] { Boolean.TRUE }));
        assertNotNull(c.findMethod("setByte",      new Object[] { new Byte((byte) 4)}));
        assertNotNull(c.findMethod("setCharacter", new Object[] { new Character('c')}));
View Full Code Here

        return velocity.getLog();
    }

    protected final void debug(String msg, Object... args)
    {
        Log log = getLog();
        if (log != null && log.isDebugEnabled())
        {
            log.debug(String.format(msg, args));
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.velocity.runtime.log.Log

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.