com.github.dynamicextensionsalfresco.behaviours.annotations.ClassPolicy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of annotations Show documentation
Show all versions of annotations 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.behaviours.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Indicates a method is a Class-level Policy.
*
* This annotation should only be applied to {@link org.alfresco.repo.policy.ClassPolicy} interface methods.
*
* @author Laurens Fridael
*
*/
@Target({ ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
public @interface ClassPolicy {
/**
* The QNames of the types or aspects to apply the Policy to. Can be specified in prefix format (
* cm:content
) or fully-qualified format (
* {http://www.alfresco.org/model/content/1.0}content
).
*
* If no value is specified, the Policy is applied to all types and aspects.
*
* @return
*/
String[] value() default {};
/**
* Indicates when to trigger the Behaviour.
*
* @return
*/
Event event() default Event.INHERITED_OR_ALL;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy