Package de.quantummaid.injectmaid
Class InjectMaidBuilder
- java.lang.Object
-
- de.quantummaid.injectmaid.InjectMaidBuilder
-
- All Implemented Interfaces:
AbstractInjectorBuilder<InjectMaidBuilder>,ConfigurationConfigurators<InjectMaidBuilder>,CustomTypeConfigurators<InjectMaidBuilder>,FactoryConfigurators<InjectMaidBuilder>,ImplementationConfigurators<InjectMaidBuilder>,ScopeConfigurators<InjectMaidBuilder>,SingletonTypeConfigurator<InjectMaidBuilder>,TypeConfigurators<InjectMaidBuilder>
public final class InjectMaidBuilder extends Object implements AbstractInjectorBuilder<InjectMaidBuilder>
-
-
Constructor Summary
Constructors Constructor Description InjectMaidBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InjectMaidbuild()<T> InjectMaidBuilderclosingInstancesOfType(Class<T> type, CloseFunction<T> closeFunction)InjectMaidBuilderusingDefaultSingletonType(SingletonType singletonType)InjectMaidBuilderwithConfiguration(InjectorConfiguration configuration)InjectMaidBuilderwithCustomType(CustomType customType, ReusePolicy reusePolicy)InjectMaidBuilderwithFactory(de.quantummaid.reflectmaid.ResolvedType type, de.quantummaid.reflectmaid.ResolvedType factory, ReusePolicy reusePolicy)InjectMaidBuilderwithImplementation(de.quantummaid.reflectmaid.ResolvedType interfaceType, de.quantummaid.reflectmaid.ResolvedType implementationType, ReusePolicy reusePolicy)InjectMaidBuilderwithInstantiator(de.quantummaid.reflectmaid.ResolvedType resolvedType, Instantiator instantiator, ReusePolicy reusePolicy)InjectMaidBuilderwithLifecycleManagement()InjectMaidBuilderwithScope(de.quantummaid.reflectmaid.ResolvedType scopeType, InjectorConfiguration configuration)InjectMaidBuilderwithType(de.quantummaid.reflectmaid.ResolvedType resolvedType, ReusePolicy reusePolicy)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.quantummaid.injectmaid.api.builder.CustomTypeConfigurators
withCustomType, withCustomType, withCustomType, withCustomType, withCustomType, withCustomType, withCustomType, withCustomType, withCustomType, withCustomType, withCustomType, withCustomType, withCustomType, withCustomType, withCustomType, withCustomType, withCustomType, withCustomType, withCustomType, withCustomType, withCustomType, withCustomType, withCustomType, withCustomType, withCustomType, withCustomType, withCustomType, withCustomType, withCustomType, withCustomType, withCustomType, withCustomType, withCustomType, withCustomType, withCustomType, withInstance, withInstance, withInstance
-
Methods inherited from interface de.quantummaid.injectmaid.api.builder.FactoryConfigurators
withFactory, withFactory, withFactory, withFactory
-
Methods inherited from interface de.quantummaid.injectmaid.api.builder.ImplementationConfigurators
withImplementation, withImplementation, withImplementation, withImplementation
-
Methods inherited from interface de.quantummaid.injectmaid.api.builder.ScopeConfigurators
withScope, withScope
-
Methods inherited from interface de.quantummaid.injectmaid.api.builder.TypeConfigurators
withType, withType, withType, withType
-
-
-
-
Method Detail
-
withConfiguration
public InjectMaidBuilder withConfiguration(InjectorConfiguration configuration)
- Specified by:
withConfigurationin interfaceConfigurationConfigurators<InjectMaidBuilder>
-
withScope
public InjectMaidBuilder withScope(de.quantummaid.reflectmaid.ResolvedType scopeType, InjectorConfiguration configuration)
- Specified by:
withScopein interfaceScopeConfigurators<InjectMaidBuilder>
-
withLifecycleManagement
public InjectMaidBuilder withLifecycleManagement()
-
withFactory
public InjectMaidBuilder withFactory(de.quantummaid.reflectmaid.ResolvedType type, de.quantummaid.reflectmaid.ResolvedType factory, ReusePolicy reusePolicy)
- Specified by:
withFactoryin interfaceFactoryConfigurators<InjectMaidBuilder>
-
withImplementation
public InjectMaidBuilder withImplementation(de.quantummaid.reflectmaid.ResolvedType interfaceType, de.quantummaid.reflectmaid.ResolvedType implementationType, ReusePolicy reusePolicy)
- Specified by:
withImplementationin interfaceImplementationConfigurators<InjectMaidBuilder>
-
withType
public InjectMaidBuilder withType(de.quantummaid.reflectmaid.ResolvedType resolvedType, ReusePolicy reusePolicy)
- Specified by:
withTypein interfaceTypeConfigurators<InjectMaidBuilder>
-
withCustomType
public InjectMaidBuilder withCustomType(CustomType customType, ReusePolicy reusePolicy)
- Specified by:
withCustomTypein interfaceCustomTypeConfigurators<InjectMaidBuilder>
-
usingDefaultSingletonType
public InjectMaidBuilder usingDefaultSingletonType(SingletonType singletonType)
- Specified by:
usingDefaultSingletonTypein interfaceSingletonTypeConfigurator<InjectMaidBuilder>
-
withInstantiator
public InjectMaidBuilder withInstantiator(de.quantummaid.reflectmaid.ResolvedType resolvedType, Instantiator instantiator, ReusePolicy reusePolicy)
-
closingInstancesOfType
public <T> InjectMaidBuilder closingInstancesOfType(Class<T> type, CloseFunction<T> closeFunction)
-
build
public InjectMaid build()
-
-