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: * An enumeration for annotation retention policies.
23: * </p>
24: *
25: * @since 1.5
26: */
27: public enum RetentionPolicy {
28: /**
29: * <p>
30: * Annotation is only available in the source code.
31: * </p>
32: */
33: SOURCE,
34: /**
35: * <p>
36: * Annotation is available in the source code and in the class file, but not
37: * at runtime. This is the default policy.
38: * </p>
39: */
40: CLASS,
41: /**
42: * <p>
43: * Annotation is available in the source code, the class file and is
44: * available at runtime.
45: * </p>
46: */
47: RUNTIME
48: }
|