net.ontopia.topicmaps.utils
Class SameStoreFactory

java.lang.Object
  extended by net.ontopia.topicmaps.utils.SameStoreFactory
All Implemented Interfaces:
TopicMapStoreFactoryIF

public class SameStoreFactory
extends java.lang.Object
implements 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
protected  TopicMapStoreIF store
           
 
Constructor Summary
SameStoreFactory(TopicMapStoreIF store)
          PUBLIC: Creates a TopicMapStoreFactoryIF which persistently references the given store
 
Method Summary
 TopicMapStoreIF createStore()
          PUBLIC: Returns a topicmap store, which is the store given to the constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

store

protected TopicMapStoreIF store
Constructor Detail

SameStoreFactory

public SameStoreFactory(TopicMapStoreIF store)
PUBLIC: Creates a TopicMapStoreFactoryIF which persistently references the given store

Parameters:
store - the given topicMapStoreFactoryIF
Method Detail

createStore

public TopicMapStoreIF createStore()
PUBLIC: Returns a topicmap store, which is the store given to the constructor.

Specified by:
createStore in interface TopicMapStoreFactoryIF
Returns:
The store received through the object's constructor.


Copyright © 2000-2012 Ontopia.