Package io.avaje.inject.core
Class BuilderFactory
- java.lang.Object
-
- io.avaje.inject.core.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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BuildernewBuilder(String name, String[] provides, String[] dependsOn)Create a Builder for the named context (module).static BuildernewRootBuilder(List<SuppliedBean> suppliedBeans, List<EnrichBean> enrichBeans)Create the root level Builder.
-
-
-
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 contextprovides- the module features this module providesdependsOn- the names of modules this module is depends on.
-
-