| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.velocity.runtime.VelocimacroFactory
public class VelocimacroFactory
VelocimacroFactory.java manages the set of VMs in a running Velocity engine.
| Constructor Summary | |
|---|---|
| VelocimacroFactory(RuntimeServices rsvc)C'tor for the VelociMacro factory. | |
| Method Summary | |
|---|---|
|  boolean | addVelocimacro(String name,
               String macroBody,
               String[] argArray,
               String sourceTemplate)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 | 
|---|
public VelocimacroFactory(RuntimeServices rsvc)
rsvc - Reference to a runtime services object.| Method Detail | 
|---|
public void initVelocimacro()
public boolean addVelocimacro(String name,
                              String macroBody,
                              String[] argArray,
                              String sourceTemplate)
name - Name of the Macro to add.macroBody - String representation of the macro.argArray - Macro arguments. First element is the macro name.sourceTemplate - Source template from which the macro gets registered.
public boolean isVelocimacro(String vm,
                             String sourceTemplate)
vm - Name of the Macro.sourceTemplate - Source template from which the macro should be loaded.
public Directive getVelocimacro(String vmName,
                                String sourceTemplate)
vmName - Name of the Macro.sourceTemplate - Source template from which the macro should be loaded.
public boolean dumpVMNamespace(String namespace)
namespace - Namespace to dump.
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||