org.progeeks.repository
Class Repository.MetaClassCache

java.lang.Object
  extended by org.progeeks.repository.Repository.MetaClassCache
Enclosing class:
Repository

protected static class Repository.MetaClassCache
extends java.lang.Object

Class the provides a cache of meta-classes that have been seen by the repository.


Constructor Summary
Repository.MetaClassCache(java.io.File repositoryDir)
          Constructor.
 
Method Summary
 void cacheMetaClass(MetaClass metaclass, boolean save)
          Adds the metaclass to the cache iff it was not already cached.
protected  void loadCache()
          Loads the metaclass cache from the file in the repository.
 java.lang.Object readMetaObject(ObjectXmlReader objectReader, java.io.Reader in)
          Reads a metaobject using the metaclass cache's registry to resolve the metaclass of the item.
protected  void saveCache()
          Writes the metaclass cache to its file in the repository.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Repository.MetaClassCache

public Repository.MetaClassCache(java.io.File repositoryDir)
Constructor.

Method Detail

cacheMetaClass

public void cacheMetaClass(MetaClass metaclass,
                           boolean save)
Adds the metaclass to the cache iff it was not already cached.


readMetaObject

public java.lang.Object readMetaObject(ObjectXmlReader objectReader,
                                       java.io.Reader in)
                                throws java.io.IOException
Reads a metaobject using the metaclass cache's registry to resolve the metaclass of the item.

Throws:
java.io.IOException

saveCache

protected void saveCache()
Writes the metaclass cache to its file in the repository.


loadCache

protected void loadCache()
Loads the metaclass cache from the file in the repository.



Copyright © 2002-2003 Paul Speed. All Rights Reserved.