Package net.ontopia.topicmaps.entry
Class SharedStoreRegistry
- java.lang.Object
-
- net.ontopia.topicmaps.entry.SharedStoreRegistry
-
public class SharedStoreRegistry extends 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
Fields Modifier and Type Field Description protected static SharedStoreRegistry
defaultRegistry
protected String
registryName
protected static Map<String,TopicMapRepositoryIF>
repositories
protected String
resourceName
protected String
sourceLocation
-
Constructor Summary
Constructors Constructor Description SharedStoreRegistry()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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(String registryName)
INTERNAL: Sets the registry name.void
setResourceName(String resourceName)
INTERNAL: Sets the resource name of the topicmap sources xml file to load from classpath.void
setSourceLocation(String sourceLocation)
INTERNAL: Sets the location of the topicmap sources xml file.
-
-
-
Field Detail
-
defaultRegistry
protected static final SharedStoreRegistry defaultRegistry
-
repositories
protected static Map<String,TopicMapRepositoryIF> repositories
-
sourceLocation
protected String sourceLocation
-
resourceName
protected String resourceName
-
registryName
protected String registryName
-
-
Method Detail
-
setSourceLocation
public void setSourceLocation(String sourceLocation)
INTERNAL: Sets the location of the topicmap sources xml file. If null, load tm-sources.xml from classpath.
-
setResourceName
public void setResourceName(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(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
-
-