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

nl.vpro.magnolia.annotations.MgnlSystemContext Maven / Gradle / Ivy

There is a newer version: 1.3.0
Show newest version
package nl.vpro.magnolia.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author Michiel Meeuwissen
 * @since 1.0
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface MgnlSystemContext {


    /**
     * Whether the system context must be release after execution.
     *
     * A system context cannot really be released, but if this is true, the thread locals will be in the same state afterwards.
     */
    boolean releaseAfterExecution() default true;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy