Package net.ontopia.topicmaps.entry
Class SharedStoreRegistry
java.lang.Object
net.ontopia.topicmaps.entry.SharedStoreRegistry
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
FieldsModifier and TypeFieldDescriptionprotected static final SharedStoreRegistryprotected Stringprotected static Map<String,TopicMapRepositoryIF> protected Stringprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final SharedStoreRegistryINTERNAL: Returns the default shared registry, of which there is one per JVM.INTERNAL: Method which returns the shared topic map repository instance.INTERNAL: Method which replaces the currently shared topic map repository with another one.voidsetRegistryName(String registryName) INTERNAL: Sets the registry name.voidsetResourceName(String resourceName) INTERNAL: Sets the resource name of the topicmap sources xml file to load from classpath.voidsetSourceLocation(String sourceLocation) INTERNAL: Sets the location of the topicmap sources xml file.
-
Field Details
-
defaultRegistry
-
repositories
-
sourceLocation
-
resourceName
-
registryName
-
-
Constructor Details
-
SharedStoreRegistry
public SharedStoreRegistry()
-
-
Method Details
-
setSourceLocation
INTERNAL: Sets the location of the topicmap sources xml file. If null, load tm-sources.xml from classpath. -
setResourceName
INTERNAL: Sets the resource name of the topicmap sources xml file to load from classpath. The default is 'tm-sources.xml'. -
setRegistryName
INTERNAL: Sets the registry name. Think at least twice before using it. -
getDefaultRegistry
INTERNAL: Returns the default shared registry, of which there is one per JVM. -
getTopicMapRepository
INTERNAL: Method which returns the shared topic map repository instance.- Since:
- 2.2
-
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
-