jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Angela Schreiber <anch...@day.com>
Subject Re: Using PathResolver
Date Mon, 07 Jan 2008 09:38:12 GMT
Esteban Franqueiro wrote:

> Path p = PathFormat.parse("/jcr:system/jcr:versionStorage", 
> s.getNamespaceResolver()).getNormalizedPath();
> 
> Is the following Jackrabbit 1.4 code funtionally equivalent:
> 
> Path p = new ParsingPathResolver(PathFactoryImpl.getInstance(), 
> s.getNamePathResolver()).getQPath("/jcr:system/jcr:versionStorage").getNormalizedPath();

since SessionImpl implements the NamePathResolver interface
i would rather call SessionImpl.getQPath instead of creating
a new resolver instance.

angela


Mime
View raw message