org.mmbase.cache.xslt
Class FactoryCache

java.lang.Object
  extended byorg.mmbase.cache.Cache
      extended byorg.mmbase.cache.xslt.FactoryCache
All Implemented Interfaces:
Map, SizeMeasurable

public class FactoryCache
extends Cache

A cache for XSL Transformer Factories. There is one needed for every directory, or more precisely, for every instance of org.mmbase.util.xml.URIResolver.

Version:
$Id: FactoryCache.java,v 1.7 2005/01/30 16:46:38 nico Exp $
Author:
Michiel Meeuwissen

Nested Class Summary
 
Nested classes inherited from class java.util.Map
Map.Entry
 
Field Summary
 
Fields inherited from class org.mmbase.cache.Cache
maxEntrySize
 
Method Summary
static FactoryCache getCache()
           
 TransformerFactory getDefaultFactory()
          If it you are sure not to use the URIResolver, then you can as well use always the same Factory.
 String getDescription()
          Gives a description for this cache type.
 TransformerFactory getFactory(File cwd)
          Deprecated.  
 TransformerFactory getFactory(URIResolver uri)
          Make a factory for a certain URIResolver.
 TransformerFactory getFactory(URL cwd)
           
 String getName()
          Returns a name for this cache type.
 
Methods inherited from class org.mmbase.cache.Cache
checkCachePolicy, clear, contains, containsKey, containsValue, entrySet, equals, get, getByteSize, getByteSize, getCache, getCaches, getCheapByteSize, getCount, getDefaultMaxEntrySize, getHits, getMaxEntrySize, getMisses, getPuts, getRatio, getStats, getTotalByteSize, hashCode, isActive, isEmpty, keySet, main, maxSize, put, putAll, putCache, putCache, remove, setActive, setMaxSize, size, toString, values
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getCache

public static FactoryCache getCache()

getName

public String getName()
Description copied from class: Cache
Returns a name for this cache type. Default it is the class name, but this normally will be overriden.

Overrides:
getName in class Cache

getDescription

public String getDescription()
Description copied from class: Cache
Gives a description for this cache type. This can be used in cache overviews.

Overrides:
getDescription in class Cache

getDefaultFactory

public TransformerFactory getDefaultFactory()
If it you are sure not to use the URIResolver, then you can as well use always the same Factory. This function supplies one.


getFactory

public TransformerFactory getFactory(URIResolver uri)
Make a factory for a certain URIResolver.


getFactory

public TransformerFactory getFactory(File cwd)
Deprecated.  

Gets a Factory from the cache. This cache is 'intelligent', you can also get from it when it is not in the cache, in which case a new Factory will be created (and put in the cache).


getFactory

public TransformerFactory getFactory(URL cwd)


MMBase build 1.8.1.20060716