org.mmbase.cache.xslt
Class FactoryCache

java.lang.Object
  extended by org.mmbase.cache.Cache<URIResolver,TransformerFactory>
      extended by org.mmbase.cache.xslt.FactoryCache
All Implemented Interfaces:
Map<URIResolver,TransformerFactory>, CacheMBean, SizeMeasurable

public class FactoryCache
extends Cache<URIResolver,TransformerFactory>

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 34936 2009-05-04 14:41:51Z michiel $
Author:
Michiel Meeuwissen

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
(package private)  boolean warnedFeature
           
 
Fields inherited from class org.mmbase.cache.Cache
lock, 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, getAvarageValueLength, getByteSize, getByteSize, getCheapByteSize, getCount, getDefaultMaxEntrySize, getHits, getImplementation, getLock, getMaxEntrySize, getMaxSize, getMisses, getPuts, getRatio, getSize, getStats, hashCode, isActive, isEmpty, keySet, maxSize, put, putAll, putCache, remove, reset, setActive, setMaxEntrySize, setMaxSize, size, toString, values
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

warnedFeature

boolean warnedFeature
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.

Specified by:
getName in interface CacheMBean
Overrides:
getName in class Cache<URIResolver,TransformerFactory>

getDescription

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

Specified by:
getDescription in interface CacheMBean
Overrides:
getDescription in class Cache<URIResolver,TransformerFactory>

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 2.0-SNAPSHOT - null