Top Description Constructors Methods
uk.ac.ed.ph.snuggletex.utilities

public final Class DoNothingStylesheetCache

extends Object
implements StylesheetCache
Class Inheritance
All Implemented Interfaces
uk.ac.ed.ph.snuggletex.utilities.StylesheetCache
Imports
javax.xml.transform.Templates

Trivial implementation of StylesheetCache that actually doesn't cache anything at all. This might be useful during development when you don't want caching at all.
Author
David McKain
Version
$Revision$

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Templates
getStylesheet(String key)

Implements uk.ac.ed.ph.snuggletex.utilities.StylesheetCache.getStylesheet.

Tries to retrieve an XSLT stylesheet from the cache having the given key.

public void
putStylesheet(String key, Templates stylesheet)

Implements uk.ac.ed.ph.snuggletex.utilities.StylesheetCache.putStylesheet.

Instructs the cache that it might want to store the given XSLT stylesheet corresponding to the given key.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DoNothingStylesheetCacheback to summary
public DoNothingStylesheetCache()

Method Detail

getStylesheetback to summary
public Templates getStylesheet(String key)

Implements uk.ac.ed.ph.snuggletex.utilities.StylesheetCache.getStylesheet.

Doc from uk.ac.ed.ph.snuggletex.utilities.StylesheetCache.getStylesheet.

Tries to retrieve an XSLT stylesheet from the cache having the given key.

Return a previously cached Templates or null if your cache doesn't want to cache this or if it does not contain the required result.

putStylesheetback to summary
public void putStylesheet(String key, Templates stylesheet)

Implements uk.ac.ed.ph.snuggletex.utilities.StylesheetCache.putStylesheet.

Doc from uk.ac.ed.ph.snuggletex.utilities.StylesheetCache.putStylesheet.

Instructs the cache that it might want to store the given XSLT stylesheet corresponding to the given key.

Implementations can safely choose to do absolutely nothing here if they want.