net.ontopia.topicmaps.entry
Class SharedStoreRegistry

java.lang.Object
  extended by net.ontopia.topicmaps.entry.SharedStoreRegistry

public class SharedStoreRegistry
extends java.lang.Object

INTERNAL: Registry of topicmap repositories that are to be shared between web applications. Instances of this class can be put into JNDI.

Since:
1.3.2

Field Summary
protected static SharedStoreRegistry defaultRegistry
           
protected  java.lang.String registryName
           
protected static java.util.Map<java.lang.String,TopicMapRepositoryIF> repositories
           
protected  java.lang.String resourceName
           
protected  java.lang.String sourceLocation
           
 
Constructor Summary
SharedStoreRegistry()
           
 
Method Summary
static SharedStoreRegistry getDefaultRegistry()
          INTERNAL: Returns the default shared registry, of which there is one per JVM.
 TopicMapRepositoryIF getTopicMapRepository()
          INTERNAL: Method which returns the shared topic map repository instance.
 TopicMapRepositoryIF replaceTopicMapRepository()
          INTERNAL: Method which replaces the currently shared topic map repository with another one.
 void setRegistryName(java.lang.String registryName)
          INTERNAL: Sets the registry name.
 void setResourceName(java.lang.String resourceName)
          INTERNAL: Sets the resource name of the topicmap sources xml file to load from classpath.
 void setSourceLocation(java.lang.String sourceLocation)
          INTERNAL: Sets the location of the topicmap sources xml file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultRegistry

protected static final SharedStoreRegistry defaultRegistry

repositories

protected static java.util.Map<java.lang.String,TopicMapRepositoryIF> repositories

sourceLocation

protected java.lang.String sourceLocation

resourceName

protected java.lang.String resourceName

registryName

protected java.lang.String registryName
Constructor Detail

SharedStoreRegistry

public SharedStoreRegistry()
Method Detail

setSourceLocation

public void setSourceLocation(java.lang.String sourceLocation)
INTERNAL: Sets the location of the topicmap sources xml file. If null, load tm-sources.xml from classpath.


setResourceName

public void setResourceName(java.lang.String resourceName)
INTERNAL: Sets the resource name of the topicmap sources xml file to load from classpath. The default is 'tm-sources.xml'.


setRegistryName

public void setRegistryName(java.lang.String registryName)
INTERNAL: Sets the registry name. Think at least twice before using it.


getDefaultRegistry

public static final SharedStoreRegistry getDefaultRegistry()
INTERNAL: Returns the default shared registry, of which there is one per JVM.


getTopicMapRepository

public TopicMapRepositoryIF getTopicMapRepository()
INTERNAL: Method which returns the shared topic map repository instance.

Since:
2.2

replaceTopicMapRepository

public TopicMapRepositoryIF replaceTopicMapRepository()
INTERNAL: Method which replaces the currently shared topic map repository with another one. The repository is closed, the configuration reread and a new shared repository instance created.

Since:
2.2


Copyright © 2000-2012 Ontopia.