org.apache.velocity.runtime
Class VelocimacroFactory

java.lang.Object
  extended by org.apache.velocity.runtime.VelocimacroFactory

public class VelocimacroFactory
extends Object

VelocimacroFactory.java manages the set of VMs in a running Velocity engine.

Version:
$Id: VelocimacroFactory.java 149352 2005-02-01 01:27:24Z wglass $
Author:
Geir Magnusson Jr.

Constructor Summary
VelocimacroFactory(RuntimeServices rs)
          CTOR : requires a runtime services from now on
 
Method Summary
 boolean addVelocimacro(String name, String macroBody, String[] argArray, String sourceTemplate, int line, int column)
          adds a macro to the factory.
 boolean dumpVMNamespace(String namespace)
          tells the vmManager to dump the specified namespace
 Directive getVelocimacro(String vmName, String sourceTemplate)
          actual factory : creates a Directive that will behave correctly wrt getting the framework to dig out the correct # of args
 void initVelocimacro()
          initialize the factory - setup all permissions load all global libraries.
 boolean isVelocimacro(String vm, String sourceTemplate)
          Tells the world if a given directive string is a Velocimacro
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VelocimacroFactory

public VelocimacroFactory(RuntimeServices rs)
CTOR : requires a runtime services from now on

Method Detail

initVelocimacro

public void initVelocimacro()
initialize the factory - setup all permissions load all global libraries.


addVelocimacro

public boolean addVelocimacro(String name,
                              String macroBody,
                              String[] argArray,
                              String sourceTemplate,
                              int line,
                              int column)
adds a macro to the factory.


isVelocimacro

public boolean isVelocimacro(String vm,
                             String sourceTemplate)
Tells the world if a given directive string is a Velocimacro


getVelocimacro

public Directive getVelocimacro(String vmName,
                                String sourceTemplate)
actual factory : creates a Directive that will behave correctly wrt getting the framework to dig out the correct # of args


dumpVMNamespace

public boolean dumpVMNamespace(String namespace)
tells the vmManager to dump the specified namespace



Copyright © 2002 Apache Software Foundation. All Rights Reserved.