Package net.ontopia.topicmaps.utils
Class SameStoreFactory
java.lang.Object
net.ontopia.topicmaps.utils.SameStoreFactory
- All Implemented Interfaces:
TopicMapStoreFactoryIF
PUBLIC: A store factory that always returns the store given to it
via its constructor. This class is useful when the intention is
that the same store object is always to be used.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSameStoreFactory(TopicMapStoreIF store) PUBLIC: Creates a TopicMapStoreFactoryIF which persistently references the given store -
Method Summary
Modifier and TypeMethodDescriptionPUBLIC: Returns a topicmap store, which is the store given to the constructor.
-
Field Details
-
store
-
-
Constructor Details
-
SameStoreFactory
PUBLIC: Creates a TopicMapStoreFactoryIF which persistently references the given store- Parameters:
store- the given topicMapStoreFactoryIF
-
-
Method Details
-
createStore
PUBLIC: Returns a topicmap store, which is the store given to the constructor.- Specified by:
createStorein interfaceTopicMapStoreFactoryIF- Returns:
- The store received through the object's constructor.
-