com.github.dynamicextensionsalfresco.policy.NoOpBehaviour Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of annotations-runtime Show documentation
Show all versions of annotations-runtime 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.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