|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.velocity.runtime.VelocimacroManager
public class VelocimacroManager
Manages VMs in namespaces. Currently, two namespace modes are supported:
Nested Class Summary | |
---|---|
protected class |
VelocimacroManager.MacroEntry
wrapper class for holding VM information |
Method Summary | |
---|---|
boolean |
addVM(String vmName,
String macroBody,
String[] argArray,
String namespace)
Adds a VM definition to the cache. |
boolean |
dumpNamespace(String namespace)
Removes the VMs and the namespace from the manager. |
VelocimacroProxy |
get(String vmName,
String namespace)
gets a new living VelocimacroProxy object by the name / source template duple |
String |
getLibraryName(String vmName,
String namespace)
|
void |
setNamespaceUsage(boolean b)
public switch to let external user of manager to control namespace usage indep of properties. |
void |
setRegisterFromLib(boolean b)
|
void |
setTemplateLocalInlineVM(boolean b)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public boolean addVM(String vmName, String macroBody, String[] argArray, String namespace)
public VelocimacroProxy get(String vmName, String namespace)
public boolean dumpNamespace(String namespace)
namespace
- namespace to dump
public void setNamespaceUsage(boolean b)
public void setRegisterFromLib(boolean b)
public void setTemplateLocalInlineVM(boolean b)
public String getLibraryName(String vmName, String namespace)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |