net.sf.plb4jedit.plb
Class IncludeCache

java.lang.Object
  extended bynet.sf.plb4jedit.plb.IncludeCache

public class IncludeCache
extends Object

implements a caching mechanism for Include objects. TODO: handle MAX_ENTRY, at the moment only a WeakHashMap is used. * @author Peter Schaefer


Method Summary
 Set content()
          actual content (keys, Strings of absolutePath) of the cache
 Include get(String absolutePath)
          gets the Include specified by its absolute path.
static IncludeCache getInstance()
          gives access to the singletion instance of this cache.
 int getSize()
          actual size of this cache
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static IncludeCache getInstance()
gives access to the singletion instance of this cache.

Returns:
IncludeCache

get

public Include get(String absolutePath)
            throws FileNotFoundException,
                   IOException
gets the Include specified by its absolute path. If an instance of this include is in the cache, this is returned, otherwise a new instance is created..

Parameters:
absolutePath -
Returns:
Throws:
FileNotFoundException
IOException

content

public Set content()
actual content (keys, Strings of absolutePath) of the cache

Returns:

getSize

public int getSize()
actual size of this cache

Returns:


Copyright © 2003 Riege Software Internationl. All Rights Reserved.