1 /* 2 * Copyright (C) 2015 The Dagger Authors. 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 /** 18 * This package contains the public API for the <a href="https://dagger.dev/">Dagger 2</a> dependency 19 * injection framework. By building upon <a href="https://jcp.org/en/jsr/detail?id=330">JSR 330</a>, 20 * Dagger 2 provides an annotation-driven API for dependency injection whose implementation is 21 * entirely generated at compile time by <a 22 * href="http://en.wikipedia.org/wiki/Java_annotation#Processing">annotation processors</a>. 23 * 24 * <p>The entry point into the API is the {@link Component}, which annotates abstract types for 25 * Dagger 2 to implement. The dependency graph is configured using annotations such as {@link 26 * Module}, {@link Provides} and {@link javax.inject.Inject}. 27 * 28 * <p>{@code dagger.internal.codegen.ComponentProcessor} is the processor responsible for generating 29 * the implementation. Dagger uses the annotation procesor {@linkplain java.util.ServiceLoader 30 * service loader} to automatically configure the processor, so explict build configuration 31 * shouldn't be necessary. 32 */ 33 package dagger; 34