StylesheetCache that simply caches all stylesheets
in a HashMap.
This is used internally by SnuggleEngine and certain extensions. It might also
be useful in other very simple situations.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Templates | getStylesheet(String key)
Implements uk. Tries to retrieve an XSLT stylesheet from the cache having the given key. |
| public void | putStylesheet(String key, Templates stylesheet)
Implements uk. Instructs the cache that it might want to store the given XSLT stylesheet corresponding to the given key. |
| public String |
| cacheMap | back to summary |
|---|---|
| private final Map<String, Templates> cacheMap | |
| SimpleStylesheetCache | back to summary |
|---|---|
| public SimpleStylesheetCache() | |
| getStylesheet | back to summary |
|---|---|
| public Templates getStylesheet(String key) Implements uk. Doc from uk. 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) Implements uk. Doc from uk. 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. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |