blob: 5d6a2839d1c013e59e482cc53885b4b20bb40f5c [file] [log] [blame]
crazyboblee4602a6f2007-02-15 02:45:18 +00001/**
2 * Copyright (C) 2006 Google Inc.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
crazyboblee1c4d3e32007-02-15 04:24:13 +000017package com.google.inject.name;
crazyboblee4602a6f2007-02-15 02:45:18 +000018
kevinb9nc0c12ea2007-02-20 04:46:01 +000019import com.google.inject.BindingAnnotation;
crazybobleed7908e82007-02-16 01:04:53 +000020import java.lang.annotation.ElementType;
kevinb9nc0c12ea2007-02-20 04:46:01 +000021import java.lang.annotation.Retention;
crazyboblee4602a6f2007-02-15 02:45:18 +000022import static java.lang.annotation.RetentionPolicy.RUNTIME;
kevinb9nc0c12ea2007-02-20 04:46:01 +000023import java.lang.annotation.Target;
crazyboblee4602a6f2007-02-15 02:45:18 +000024
25/**
26 * Annotates named things.
27 *
28 * @author crazybob@google.com (Bob Lee)
29 */
30@Retention(RUNTIME)
crazyboblee81303cd2007-05-09 00:44:37 +000031@Target({ ElementType.FIELD, ElementType.PARAMETER, ElementType.METHOD })
kevinb9nc0c12ea2007-02-20 04:46:01 +000032@BindingAnnotation
crazyboblee4602a6f2007-02-15 02:45:18 +000033public @interface Named {
34 String value();
35}