/*
 * <p>Title: ProView</p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2007</p>
 * <p>Company: Institut de recherches cliniques de Montréal (IRCM)</p>
 */
package ca.qc.ircm.stripes.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Annotation used to indicate that an attribute should be stored in session.
 * 
 * @author poitrac
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface Session {
    /**
     * Indicate if attribute is serializable.
     */
    boolean serializable() default false;
    /**
     * Maximum time in minutes the object will stay in session if no accessed.
     */
    int maxTime() default -1;
}
