|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Nested Class Summary | |
static class |
TM4JVelocityConfiguration.ConfigurationScope
|
| Method Summary | |
LoadableTM |
getLoadable(java.lang.String topicMapName)
Returns the LoadableTM implementation that represents the interface to load or unload the specified topic map |
java.lang.String[] |
getLoadables()
|
PageInfo |
getPageInfo(org.tm4j.topicmap.TopicMap tm,
java.lang.String piClass)
|
RenderInfo |
getRenderInfo(org.tm4j.topicmap.Topic topic)
Returns the rendering information for the specified topic. |
java.lang.String |
getTemplateAndPageInfo(org.tm4j.topicmap.Topic t,
org.apache.velocity.context.Context ctxt)
Processes the configuration to find the PageInfo implementation to extract context information for the specified topic and the template to use to render the topic. |
void |
setUpContext(org.apache.velocity.context.Context ctxt,
java.io.File baseDir)
Sets up the global application context which contains information about the providers, loadable topic maps and the default pre-configured helper objects. |
void |
topicmapLoaded(org.tm4j.topicmap.TopicMapProvider provider,
java.lang.String tmName,
org.tm4j.topicmap.TopicMap tm)
Invoked when the application loads a new topic map. |
void |
topicmapUnloaded(org.tm4j.topicmap.TopicMapProvider provider,
java.lang.String tmName,
org.tm4j.topicmap.TopicMap tm)
Invoked when the application unloads a topic map. |
| Field Detail |
public static final TM4JVelocityConfiguration.ConfigurationScope SCOPE_SELF
public static final TM4JVelocityConfiguration.ConfigurationScope SCOPE_INSTANCES
public static final TM4JVelocityConfiguration.ConfigurationScope SCOPE_SUBCLASSES
| Method Detail |
public void setUpContext(org.apache.velocity.context.Context ctxt,
java.io.File baseDir)
throws FactoryInitialisationException
ctxt - the Velocity Context to be loaded with information about providers,
loadable topic maps and with pre-configured helper objects.baseDir - the base directory to use when resolving paths in the configuration file
FactoryInitialisationException
public java.lang.String getTemplateAndPageInfo(org.tm4j.topicmap.Topic t,
org.apache.velocity.context.Context ctxt)
t - the topic to be renderedctxt - the Velocity context into which information extracted by
the PageInfo for the topic should be placed.
public void topicmapLoaded(org.tm4j.topicmap.TopicMapProvider provider,
java.lang.String tmName,
org.tm4j.topicmap.TopicMap tm)
public void topicmapUnloaded(org.tm4j.topicmap.TopicMapProvider provider,
java.lang.String tmName,
org.tm4j.topicmap.TopicMap tm)
public java.lang.String[] getLoadables()
public LoadableTM getLoadable(java.lang.String topicMapName)
topicMapName - the symbolic name assigned to the topic map
in the configuration file.
topicMapNamepublic RenderInfo getRenderInfo(org.tm4j.topicmap.Topic topic)
topic -
public PageInfo getPageInfo(org.tm4j.topicmap.TopicMap tm,
java.lang.String piClass)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||