Annotation Interface Component.Builder

Enclosing class:
Component

@Retention(SOURCE) @Target(TYPE) public static @interface Component.Builder
A builder for a component. Components may have a single nested interface annotated with @Component.Builder.

The builder is an interface with zero or more setter methods that return the builder type. Additionally, there must be exactly one abstract no-argument method that returns the component type, called the "build method". The setter methods provide the bound instances required by the component.

If the mockBuilder attribute is true, then the generated implementation of the builder will contain an additional method called withMocks which returns a new MockBuilder.