parse DocApplication when it's first accessed.
added getCacheUsage()
This commit is contained in:
parent
520a32fe80
commit
1d8329cfde
1 changed files with 10 additions and 1 deletions
|
@ -512,6 +512,14 @@ public final class Application implements IPathElement, Runnable {
|
||||||
nmgr.clearCache ();
|
nmgr.clearCache ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the number of elements in the NodeManager's cache
|
||||||
|
*/
|
||||||
|
public int getCacheUsage () {
|
||||||
|
return nmgr.countCacheEntries ();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the application's root element to an arbitrary object. After this is called
|
* Set the application's root element to an arbitrary object. After this is called
|
||||||
* with a non-null object, the helma node manager will be bypassed. This function
|
* with a non-null object, the helma node manager will be bypassed. This function
|
||||||
|
@ -1000,6 +1008,7 @@ public final class Application implements IPathElement, Runnable {
|
||||||
if ( docApp==null ) {
|
if ( docApp==null ) {
|
||||||
try {
|
try {
|
||||||
docApp = new DocApplication (this.name, appDir.toString());
|
docApp = new DocApplication (this.name, appDir.toString());
|
||||||
|
docApp.readApplication ();
|
||||||
} catch ( DocException e ) {
|
} catch ( DocException e ) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue