Class BuilderFactory


  • public class BuilderFactory
    extends Object
    Factory for creating Builder instances.

    These Builders are typically used by generated code (Java annotation processing - dinject-generator).

    • Method Detail

      • newRootBuilder

        public static Builder newRootBuilder​(List<SuppliedBean> suppliedBeans,
                                             List<EnrichBean> enrichBeans)
        Create the root level Builder.
        Parameters:
        suppliedBeans - The list of beans (typically test doubles) supplied when building the context.
        enrichBeans - The list of classes we want to have with mockito spy enhancement
      • newBuilder

        public static Builder newBuilder​(String name,
                                         String[] provides,
                                         String[] dependsOn)
        Create a Builder for the named context (module).
        Parameters:
        name - the name of the module / bean context
        provides - the module features this module provides
        dependsOn - the names of modules this module is depends on.