org.tm4j.vtl
Class LoadableTMImpl

java.lang.Object
  extended byorg.tm4j.vtl.LoadableTMImpl
All Implemented Interfaces:
LoadableTM

public class LoadableTMImpl
extends java.lang.Object
implements LoadableTM


Constructor Summary
LoadableTMImpl(org.tm4j.topicmap.TopicMapProvider provider, TopicMapConfig tmConfiguration, TM4JVelocityConfiguration appConfig)
           
 
Method Summary
 org.tm4j.topicmap.utils.WalkerFilter getFilterChain()
           
 boolean getIsLoaded()
           
 org.tm4j.topicmap.utils.WalkerFilter getLastFilter()
           
 org.tm4j.topicmap.TopicMapObject getObjectByID(java.lang.String id)
           
 org.tm4j.topicmap.TopicMapProvider getProvider()
           
 org.tm4j.net.Locator getSource()
           
 org.tm4j.topicmap.TopicMap getTopicMap()
           
 TopicMapConfig getTopicMapConfiguration()
           
 org.apache.velocity.context.Context getTopicMapContext()
           
 boolean load()
           
 boolean load(javax.servlet.ServletContext servletContext)
           
 void unload()
          Unloads the underlying topic map, removing it and any associated indexes from memory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoadableTMImpl

public LoadableTMImpl(org.tm4j.topicmap.TopicMapProvider provider,
                      TopicMapConfig tmConfiguration,
                      TM4JVelocityConfiguration appConfig)
Method Detail

getTopicMapConfiguration

public TopicMapConfig getTopicMapConfiguration()
Specified by:
getTopicMapConfiguration in interface LoadableTM

getProvider

public org.tm4j.topicmap.TopicMapProvider getProvider()
Specified by:
getProvider in interface LoadableTM

getTopicMap

public org.tm4j.topicmap.TopicMap getTopicMap()
Specified by:
getTopicMap in interface LoadableTM

getIsLoaded

public boolean getIsLoaded()
Specified by:
getIsLoaded in interface LoadableTM

getSource

public org.tm4j.net.Locator getSource()
Specified by:
getSource in interface LoadableTM

getFilterChain

public org.tm4j.topicmap.utils.WalkerFilter getFilterChain()
Specified by:
getFilterChain in interface LoadableTM

getLastFilter

public org.tm4j.topicmap.utils.WalkerFilter getLastFilter()
Specified by:
getLastFilter in interface LoadableTM

load

public boolean load()
Specified by:
load in interface LoadableTM

load

public boolean load(javax.servlet.ServletContext servletContext)
Specified by:
load in interface LoadableTM

unload

public void unload()
Unloads the underlying topic map, removing it and any associated indexes from memory.

Specified by:
unload in interface LoadableTM

getObjectByID

public org.tm4j.topicmap.TopicMapObject getObjectByID(java.lang.String id)

getTopicMapContext

public org.apache.velocity.context.Context getTopicMapContext()
Specified by:
getTopicMapContext in interface LoadableTM