@Deprecated public interface JcrResourceResolverFactory extends ResourceResolverFactory
JcrResourceResolverFactoryinterface defines the service interface to have JCR-based
ResourceResolverinstances created for JCR sessions.
This interface is not intended to be implemented by client applications. It
is implemented by this bundle and the implementation registered as a service
for use by client applications.
This interface is deprecated. You should use
instead. If you need a resource resolver based on an existing session
you can create an authentication map just containing this session
(using the key
and then call
with exactly this map.
|Modifier and Type||Method and Description|
ResourceResolver getResourceResolver(javax.jcr.Session session)
ResourceResolverfor the given session. Calling this method repeatedly returns a new instance on each call.
This method is equivalent to:
Map<String, Object> authInfo = new HashMap<String, Object>(); authInfo.put(SESSION, session); return getResourceResolver(authInfo);
Note: Closing the
ResourceResolver returned by this
method will not close the provided
Session ! Likewise
Session should not be logged out before closing
session- The JCR
Sessionused by the created resource manager to access the repository.
Copyright © 2014 The Apache Software Foundation. All rights reserved.