use of com.adobe.acs.commons.util.DynamicObjectInputStream in project acs-aem-commons by Adobe-Consulting-Services.
the class EntryNodeToCacheKeyHandler method get.
public CacheKey get() throws RepositoryException, IOException, ClassNotFoundException {
if (entryNode != null) {
final Property cacheKeyProperty = entryNode.getProperty(JCRHttpCacheStoreConstants.PN_CACHEKEY);
final InputStream inputStream = cacheKeyProperty.getBinary().getStream();
final ClassLoader dynamicClassLoader = dynamicClassLoaderManager.getDynamicClassLoader();
final DynamicObjectInputStream dynamicObjectInputStream = new DynamicObjectInputStream(inputStream, dynamicClassLoader);
return (CacheKey) dynamicObjectInputStream.readObject();
}
return null;
}
Aggregations