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

com.github.dynamicextensionsalfresco.policy.NoOpBehaviour 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.policy;

import org.alfresco.repo.policy.Behaviour;

class NoOpBehaviour implements Behaviour {

	/* State */

	private boolean enabled = true;

	private final NotificationFrequency notificationFrequency;

	/* Operations */

	NoOpBehaviour(final NotificationFrequency notificationFrequency, final boolean enabled) {
		this.notificationFrequency = notificationFrequency;
		this.enabled = enabled;
	}

	@Override
	public  T getInterface(final Class policy) {
		throw new UnsupportedOperationException();
	}

	@Override
	public void disable() {
		enabled = false;
	}

	@Override
	public void enable() {
		enabled = true;
	}

	@Override
	public boolean isEnabled() {
		return enabled;
	}

	@Override
	public NotificationFrequency getNotificationFrequency() {
		return notificationFrequency;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy