blob: acc7be412eac40e4a4621e03d3ab523942000050 [file] [log] [blame]
crazyboblee66b415a2006-08-25 02:01:19 +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
17package com.google.inject;
18
19import java.lang.annotation.ElementType;
20import java.lang.annotation.Retention;
21import static java.lang.annotation.RetentionPolicy.RUNTIME;
22import java.lang.annotation.Target;
23
24/**
crazyboblee63b592b2007-01-25 02:45:24 +000025 * Annotates an implementation class with the name of its scope.
crazyboblee66b415a2006-08-25 02:01:19 +000026 *
crazyboblee63b592b2007-01-25 02:45:24 +000027 * @see com.google.inject.ContainerBuilder#put(String, Scope)
crazyboblee66b415a2006-08-25 02:01:19 +000028 * @author crazybob
29 */
30@Target(ElementType.TYPE)
31@Retention(RUNTIME)
32public @interface Scoped {
33
34 /**
crazyboblee63b592b2007-01-25 02:45:24 +000035 * Scope name.
crazyboblee66b415a2006-08-25 02:01:19 +000036 */
crazyboblee63b592b2007-01-25 02:45:24 +000037 String value();
crazyboblee66b415a2006-08-25 02:01:19 +000038}