crazyboblee | 6ab7e1f | 2006-12-02 00:20:36 +0000 | [diff] [blame] | 1 | /** |
| 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 | |
| 17 | package com.google.inject; |
| 18 | |
| 19 | /** |
crazyboblee | 61257a8 | 2007-03-03 00:23:40 +0000 | [diff] [blame] | 20 | * A module contributes configuration information, typically interface |
kevinb9n | b950ad9 | 2007-03-13 02:16:16 +0000 | [diff] [blame] | 21 | * bindings, which will be used to create an {@link Injector}. A Guice-based |
crazyboblee | c1d0c64 | 2007-03-07 17:20:22 +0000 | [diff] [blame] | 22 | * application is ultimately composed of little more than a set of |
| 23 | * {@code Module}s and some bootstrapping code. |
crazyboblee | 0bfdbc6 | 2007-02-20 21:47:19 +0000 | [diff] [blame] | 24 | * |
| 25 | * <p>Your Module classes can use a more streamlined syntax by extending |
| 26 | * {@link AbstractModule} rather than implementing this interface directly. |
crazyboblee | 6ab7e1f | 2006-12-02 00:20:36 +0000 | [diff] [blame] | 27 | */ |
crazyboblee | 63b592b | 2007-01-25 02:45:24 +0000 | [diff] [blame] | 28 | public interface Module { |
crazyboblee | 6ab7e1f | 2006-12-02 00:20:36 +0000 | [diff] [blame] | 29 | |
crazyboblee | 7c5b2c4 | 2007-01-20 02:05:20 +0000 | [diff] [blame] | 30 | /** |
kevinb9n | b950ad9 | 2007-03-13 02:16:16 +0000 | [diff] [blame] | 31 | * Contributes bindings and other configurations for this module to a |
| 32 | * {@code Binder}. |
crazyboblee | 7c5b2c4 | 2007-01-20 02:05:20 +0000 | [diff] [blame] | 33 | */ |
crazyboblee | 9d573ed | 2007-02-20 19:23:10 +0000 | [diff] [blame] | 34 | void configure(Binder binder); |
crazyboblee | 6ab7e1f | 2006-12-02 00:20:36 +0000 | [diff] [blame] | 35 | } |