Package com.adobe.aio.aem.util
Class ResourceResolverWrapper
- java.lang.Object
-
- com.adobe.aio.aem.util.ResourceResolverWrapper
-
- All Implemented Interfaces:
AutoCloseable
public class ResourceResolverWrapper extends Object implements AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description ResourceResolverWrapper(org.apache.sling.api.resource.ResourceResolverFactory rrf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
org.apache.sling.api.resource.ResourceResolver
getResolver()
Get a valid ResourceResolver.
-
-
-
Method Detail
-
close
public void close() throws Exception
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
getResolver
public org.apache.sling.api.resource.ResourceResolver getResolver()
Get a valid ResourceResolver.- Returns:
- a ResourceResolver. If called multiple times, it's always the same ResourceResolver instance
-
-