|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.liquidsite.app.template.TemplateBean
org.liquidsite.app.template.PluginBean
The plugin bean. This class provides a template bean with a list of all currently loaded plugin beans. Upon access to a plugin bean, a new instance will also be created. The instance of each plugin bean is kept for the lifetime of this bean.
| Field Summary |
| Fields inherited from interface freemarker.template.TemplateModel |
NOTHING |
| Method Summary | |
static void |
add(java.lang.String name,
java.lang.Class cls)
Adds a plugin class mapping. |
freemarker.template.TemplateModel |
get(java.lang.String id)
Returns a plugin bean as a template model. |
boolean |
isEmpty()
Checks if the hash model is empty. |
static void |
removeAll()
Removes all registered plugin class mappings. |
| Methods inherited from class org.liquidsite.app.template.TemplateBean |
getContext, getContextRequest |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static void add(java.lang.String name,
java.lang.Class cls)
throws TemplateException
name - the template bean namecls - the template bean class
TemplateException - if the template bean mapping couldn't
be addedpublic static void removeAll()
public boolean isEmpty()
isEmpty in interface freemarker.template.TemplateHashModelpublic freemarker.template.TemplateModel get(java.lang.String id)
get in interface freemarker.template.TemplateHashModelid - the plugin bean name
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||