|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.spi.commons.conversion.CachingPathResolver
public class CachingPathResolver
Path resolver decorator that uses a generational cache to speed up parsing and formatting of JCR paths. Uncached paths are resolved using the underlying decorated path resolver.
Constructor Summary | |
---|---|
CachingPathResolver(PathResolver resolver)
Creates a caching decorator for the given path resolver. |
|
CachingPathResolver(PathResolver resolver,
org.apache.jackrabbit.spi.commons.conversion.GenerationalCache cache)
Creates a caching decorator for the given path resolver. |
Method Summary | |
---|---|
String |
getJCRPath(Path qpath)
Returns the prefixed JCR path for the given qualified path. |
Path |
getQPath(String path)
Returns the qualified path for the given prefixed JCR path. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CachingPathResolver(PathResolver resolver, org.apache.jackrabbit.spi.commons.conversion.GenerationalCache cache)
resolver
- decorated path resolvercache
- generational cachepublic CachingPathResolver(PathResolver resolver)
resolver
- name resolverMethod Detail |
---|
public Path getQPath(String path) throws MalformedPathException, IllegalNameException, NamespaceException
getQPath
in interface PathResolver
path
- prefixed JCR path
MalformedPathException
- if the JCR path format is invalid
IllegalNameException
- if any of the JCR names contained in the path are invalid.
NamespaceException
- if a namespace prefix can not be resolvedpublic String getJCRPath(Path qpath) throws NamespaceException
getJCRPath
in interface PathResolver
qpath
- qualified path
NamespaceException
- if a namespace URI can not be resolved
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |