|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tm4j.vtl.TM4JVelocityConfigurationBase
A base class implementation of the TM4JVelocityConfiguration interface.
| Nested Class Summary |
| Nested classes inherited from class org.tm4j.vtl.TM4JVelocityConfiguration |
TM4JVelocityConfiguration.ConfigurationScope |
| Field Summary |
| Fields inherited from interface org.tm4j.vtl.TM4JVelocityConfiguration |
SCOPE_INSTANCES, SCOPE_SELF, SCOPE_SUBCLASSES |
| Constructor Summary | |
TM4JVelocityConfigurationBase()
|
|
| Method Summary | |
abstract java.util.Properties |
getHelpers()
|
PageInfo |
getPageInfo(org.tm4j.topicmap.TopicMap tm,
java.lang.String pageInfoClass)
|
abstract java.lang.String[] |
getPageInfoClassNames(java.lang.String tmName)
|
abstract java.lang.Class |
getProviderClass(java.lang.String providerName)
|
abstract java.util.Properties |
getProviderProps(java.lang.String providerName)
|
abstract java.lang.String[] |
getProviders()
|
RenderInfo |
getRenderInfo(org.tm4j.topicmap.Topic t)
Returns the rendering information for the specified topic. |
abstract RenderInfo |
getRenderInfo(org.tm4j.topicmap.Topic t,
TM4JVelocityConfiguration.ConfigurationScope scope)
|
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. |
abstract TopicMapConfig[] |
getTopicMaps(java.lang.String providerName,
java.io.File baseDir)
|
protected void |
registerHelpers(org.apache.velocity.context.Context ctxt)
|
protected void |
registerLoadedTopicMaps(org.apache.velocity.context.Context ctxt,
java.io.File baseDir)
|
protected void |
registerProviders(org.apache.velocity.context.Context context)
Retrieves the TopicMapProvider instance specified by the web application configuration information. |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.tm4j.vtl.TM4JVelocityConfiguration |
getLoadable, getLoadables |
| Constructor Detail |
public TM4JVelocityConfigurationBase()
| Method Detail |
public void topicmapLoaded(org.tm4j.topicmap.TopicMapProvider provider,
java.lang.String tmName,
org.tm4j.topicmap.TopicMap tm)
TM4JVelocityConfiguration
topicmapLoaded in interface TM4JVelocityConfiguration
public void topicmapUnloaded(org.tm4j.topicmap.TopicMapProvider provider,
java.lang.String tmName,
org.tm4j.topicmap.TopicMap tm)
TM4JVelocityConfiguration
topicmapUnloaded in interface TM4JVelocityConfiguration
public PageInfo getPageInfo(org.tm4j.topicmap.TopicMap tm,
java.lang.String pageInfoClass)
getPageInfo in interface TM4JVelocityConfiguration
public java.lang.String getTemplateAndPageInfo(org.tm4j.topicmap.Topic t,
org.apache.velocity.context.Context ctxt)
TM4JVelocityConfiguration
getTemplateAndPageInfo in interface TM4JVelocityConfigurationt - the topic to be renderedctxt - the Velocity context into which information extracted by
the PageInfo for the topic should be placed.
public RenderInfo getRenderInfo(org.tm4j.topicmap.Topic t)
TM4JVelocityConfiguration
getRenderInfo in interface TM4JVelocityConfigurationt -
public void setUpContext(org.apache.velocity.context.Context ctxt,
java.io.File baseDir)
TM4JVelocityConfiguration
setUpContext in interface TM4JVelocityConfigurationctxt - 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 fileprotected void registerProviders(org.apache.velocity.context.Context context)
protected void registerLoadedTopicMaps(org.apache.velocity.context.Context ctxt,
java.io.File baseDir)
protected void registerHelpers(org.apache.velocity.context.Context ctxt)
public abstract java.lang.String[] getPageInfoClassNames(java.lang.String tmName)
public abstract RenderInfo getRenderInfo(org.tm4j.topicmap.Topic t,
TM4JVelocityConfiguration.ConfigurationScope scope)
public abstract java.lang.String[] getProviders()
public abstract java.lang.Class getProviderClass(java.lang.String providerName)
public abstract java.util.Properties getProviderProps(java.lang.String providerName)
public abstract TopicMapConfig[] getTopicMaps(java.lang.String providerName,
java.io.File baseDir)
public abstract java.util.Properties getHelpers()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||