jaroslav@66: /* jaroslav@66: * Copyright (c) 2003, 2006, Oracle and/or its affiliates. All rights reserved. jaroslav@66: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. jaroslav@66: * jaroslav@66: * This code is free software; you can redistribute it and/or modify it jaroslav@66: * under the terms of the GNU General Public License version 2 only, as jaroslav@66: * published by the Free Software Foundation. Oracle designates this jaroslav@66: * particular file as subject to the "Classpath" exception as provided jaroslav@66: * by Oracle in the LICENSE file that accompanied this code. jaroslav@66: * jaroslav@66: * This code is distributed in the hope that it will be useful, but WITHOUT jaroslav@66: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or jaroslav@66: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License jaroslav@66: * version 2 for more details (a copy is included in the LICENSE file that jaroslav@66: * accompanied this code). jaroslav@66: * jaroslav@66: * You should have received a copy of the GNU General Public License version jaroslav@66: * 2 along with this work; if not, write to the Free Software Foundation, jaroslav@66: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. jaroslav@66: * jaroslav@66: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA jaroslav@66: * or visit www.oracle.com if you need additional information or have any jaroslav@66: * questions. jaroslav@66: */ jaroslav@66: jaroslav@66: package java.lang.annotation; jaroslav@66: jaroslav@66: /** jaroslav@66: * Indicates how long annotations with the annotated type are to jaroslav@66: * be retained. If no Retention annotation is present on jaroslav@66: * an annotation type declaration, the retention policy defaults to jaroslav@66: * {@code RetentionPolicy.CLASS}. jaroslav@66: * jaroslav@66: *

A Retention meta-annotation has effect only if the jaroslav@66: * meta-annotated type is used directly for annotation. It has no jaroslav@66: * effect if the meta-annotated type is used as a member type in jaroslav@66: * another annotation type. jaroslav@66: * jaroslav@66: * @author Joshua Bloch jaroslav@66: * @since 1.5 jaroslav@66: */ jaroslav@66: @Documented jaroslav@66: @Retention(RetentionPolicy.RUNTIME) jaroslav@66: @Target(ElementType.ANNOTATION_TYPE) jaroslav@66: public @interface Retention { jaroslav@66: RetentionPolicy value(); jaroslav@66: }