A SnuggleEngine creates a default implementation of this that caches stylesheets
over the lifetime of the SnuggleEngine Object, which is reasonable. If you want
to change this, create your own implementation and attach it to your SnuggleEngine.
You can use the SimpleStylesheetCache in your own applications if you want to.
StylesheetManager instance to do this safely.)
SimpleStylesheetCache
| Modifier and Type | Method and Description |
|---|---|
| public Templates | |
| public void | putStylesheet(String key, Templates stylesheet)
Instructs the cache that it might want to store the given XSLT stylesheet corresponding to the given key. |
| getStylesheet | back to summary |
|---|---|
| public Templates getStylesheet(String key) Tries to retrieve an XSLT stylesheet from the cache having the given key.
Return a previously cached | |
| putStylesheet | back to summary |
|---|---|
| public void putStylesheet(String key, Templates stylesheet) 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. | |