Home | History | Annotate | Download | only in dagger

Lines Matching defs:Builder

111  * <a href="http://en.wikipedia.org/wiki/Builder_pattern">builder</a>. An instance of the builder
112 * is obtained using the {@code builder()} method on the component implementation.
113 * If a nested {@code @Component.Builder} type exists in the component, the {@code builder()}
115 * {@code @Component.Builder} exists, the returned builder has a method to set each of the
120 * component implementation may be elided. This is an example usage of a component builder:
124 * MyComponent component = DaggerMyComponent.builder()
137 * {@code SomeComponent.create()} and {@code SomeComponent.builder().build()} are both valid and
226 * A builder for a component. Components may have a single nested static abstract class or
227 * interface annotated with {@code @Component.Builder}. If they do, then the component's
228 * generated builder will match the API in the type. Builders must follow some rules:
233 * the Builder type, or a supertype of the builder.
238 * <li> Non-abstract methods are allowed, but ignored as far as validation and builder generation
242 * For example, this could be a valid Component with a Builder: <pre><code>
247 * {@literal @}Component.Builder
248 * interface Builder {
250 * Builder backendModule(BackendModule bm);
251 * Builder frontendModule(FrontendModule fm);
257 @interface Builder {}