|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.progeeks.repository.Repository.MetaClassCache
protected static class Repository.MetaClassCache
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 |
|---|
public Repository.MetaClassCache(java.io.File repositoryDir)
| Method Detail |
|---|
public void cacheMetaClass(MetaClass metaclass,
boolean save)
public java.lang.Object readMetaObject(ObjectXmlReader objectReader,
java.io.Reader in)
throws java.io.IOException
java.io.IOExceptionprotected void saveCache()
protected void loadCache()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||