com.github.dynamicextensionsalfresco.osgi.PackageCacheMode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alfresco-integration Show documentation
Show all versions of alfresco-integration Show documentation
Adds an OSGi container to alfresco repository supporting dynamic code reloading, classpath isolation and a bunch of other useful features
package com.github.dynamicextensionsalfresco.osgi;
/**
* Strategy for system package cache.
*
* @author Laurent Van der Linden
*/
public enum PackageCacheMode {
ENABLE(true, true, false), DISABLE(false, false, false), UPDATE(false, true, true);
private final boolean readFromCache;
private final boolean writeToCache;
private final boolean forceWriteToCache;
PackageCacheMode(boolean readFromCache, boolean writeToCache, boolean forceWriteToCache) {
this.readFromCache = readFromCache;
this.writeToCache = writeToCache;
this.forceWriteToCache = forceWriteToCache;
}
public boolean isReadFromCache() {
return readFromCache;
}
public boolean isWriteToCache() {
return writeToCache;
}
public boolean isForceWriteToCache() {
return forceWriteToCache;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy