All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.dynamicextensionsalfresco.osgi.PackageCacheMode Maven / Gradle / Ivy

Go to download

Adds an OSGi container to alfresco repository supporting dynamic code reloading, classpath isolation and a bunch of other useful features

There is a newer version: 3.1.0
Show newest version
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