Search in sources :

Example 1 with CachingPathResolver

use of org.apache.jackrabbit.spi.commons.conversion.CachingPathResolver in project jackrabbit by apache.

the class EventState method setupCachingPathResolver.

private static void setupCachingPathResolver() {
    if (cachingPathResolver != null) {
        return;
    }
    PathResolver pathResolver = new ParsingPathResolver(PathFactoryImpl.getInstance(), new NameResolver() {

        public Name getQName(String name) throws IllegalNameException, NamespaceException {
            return null;
        }

        public String getJCRName(Name name) throws NamespaceException {
            return name.getLocalName();
        }
    });
    cachingPathResolver = new CachingPathResolver(pathResolver);
}
Also used : NamespaceException(javax.jcr.NamespaceException) CachingPathResolver(org.apache.jackrabbit.spi.commons.conversion.CachingPathResolver) PathResolver(org.apache.jackrabbit.spi.commons.conversion.PathResolver) ParsingPathResolver(org.apache.jackrabbit.spi.commons.conversion.ParsingPathResolver) IllegalNameException(org.apache.jackrabbit.spi.commons.conversion.IllegalNameException) ParsingPathResolver(org.apache.jackrabbit.spi.commons.conversion.ParsingPathResolver) NameResolver(org.apache.jackrabbit.spi.commons.conversion.NameResolver) Name(org.apache.jackrabbit.spi.Name) CachingPathResolver(org.apache.jackrabbit.spi.commons.conversion.CachingPathResolver)

Aggregations

NamespaceException (javax.jcr.NamespaceException)1 Name (org.apache.jackrabbit.spi.Name)1 CachingPathResolver (org.apache.jackrabbit.spi.commons.conversion.CachingPathResolver)1 IllegalNameException (org.apache.jackrabbit.spi.commons.conversion.IllegalNameException)1 NameResolver (org.apache.jackrabbit.spi.commons.conversion.NameResolver)1 ParsingPathResolver (org.apache.jackrabbit.spi.commons.conversion.ParsingPathResolver)1 PathResolver (org.apache.jackrabbit.spi.commons.conversion.PathResolver)1