01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with this
04: * work for additional information regarding copyright ownership. The ASF
05: * licenses this file to you under the Apache License, Version 2.0 (the
06: * "License"); you may not use this file except in compliance with the License.
07: * You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13: * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14: * License for the specific language governing permissions and limitations under
15: * the License.
16: */
17:
18: package java.lang.annotation;
19:
20: /**
21: * <p>
22: * A meta-annotation used to determine the scope of retention for an annotation.
23: * The default value is {@link RetentionPolicy#RUNTIME}.
24: * </p>
25: *
26: * @since 1.5
27: */
28: @Documented
29: @Retention(RetentionPolicy.RUNTIME)
30: @Target(ElementType.ANNOTATION_TYPE)
31: public @interface Retention {
32: RetentionPolicy value();
33: }
|