|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectStylesheetCache.DepResolver
private class StylesheetCache.DepResolver
While loading a stylesheet, we record all the sub-stylesheets referenced by it, so that we can form a list of all the dependencies. That way, if any of them are changed, the stylesheet will be auto- matically reloaded. We do it by implementing a pass-through URIResolver that adds a dependency and then does the normal URIResolver work.
Field Summary | |
---|---|
(package private) GeneratingCache |
cache
The cache to add dependencies to |
(package private) URIResolver |
realResolver
Does the work of resolving the URI's |
Constructor Summary | |
---|---|
StylesheetCache.DepResolver(GeneratingCache cache,
URIResolver realResolver)
Constructor. |
Method Summary | |
---|---|
Source |
resolve(String href,
String base)
Resolve a URI, and add a dependency for it to the cache. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
GeneratingCache cache
URIResolver realResolver
Constructor Detail |
---|
StylesheetCache.DepResolver(GeneratingCache cache, URIResolver realResolver)
cache
- The cache to add dependencies torealResolver
- The URIResolver that does the resolutionMethod Detail |
---|
public Source resolve(String href, String base) throws TransformerException
resolve
in interface URIResolver
href
- Full or partial hyperlink referencebase
- Base URI of the document
TransformerException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |