@Target(value=TYPE) @Documented public static @interface ProductionComponent.Builder
@ProductionComponent.Builder
. If they do, then the component's
generated builder will match the API in the type. Builders must follow some rules:
build()
method.)
ProductionComponent
with a builder:
@ProductionComponent(modules = {BackendModule.class, FrontendModule.class})
interface MyComponent {
ListenableFuture<MyWidget> myWidget();
@ProductionComponent.Builder
interface Builder {
MyComponent build();
Builder backendModule(BackendModule bm);
Builder frontendModule(FrontendModule fm);
}
}
Copyright © 2012–2017 The Dagger Authors. All rights reserved.