blob: 9df67d94f597792d91ff6106a422848ea482d4e1 [file] [log] [blame]
crazyboblee7eb9f442007-03-01 03:46:13 +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
crazyboblee6c7720d2007-03-01 21:49:19 +000019import static java.lang.annotation.ElementType.TYPE;
20import java.lang.annotation.Retention;
21import static java.lang.annotation.RetentionPolicy.RUNTIME;
22import java.lang.annotation.Target;
23
crazyboblee7eb9f442007-03-01 03:46:13 +000024/**
crazyboblee61257a82007-03-03 00:23:40 +000025 * A pointer to the default provider type for a type.
crazyboblee7eb9f442007-03-01 03:46:13 +000026 *
27 * @author crazybob@google.com (Bob Lee)
28 */
crazyboblee6c7720d2007-03-01 21:49:19 +000029@Retention(RUNTIME)
30@Target(TYPE)
crazyboblee38545822007-03-01 23:33:48 +000031public @interface ProvidedBy {
crazyboblee7eb9f442007-03-01 03:46:13 +000032
33 /**
34 * The implementation type.
35 */
crazyboblee6c7720d2007-03-01 21:49:19 +000036 Class<? extends Provider<?>> value();
crazyboblee7eb9f442007-03-01 03:46:13 +000037}