Class 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
    • Constructor Detail

      • SharedStoreRegistry

        public SharedStoreRegistry()
    • 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