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()InjectMaidBuildercloseOnJvmShutdown()<T> InjectMaidBuilderclosingInstancesOfType(Class<T> type, CloseFunction<T> closeFunction)InjectMaidBuilderenforcingMaximumInstantiationTimeOf(Duration maxInstantiationTime)de.quantummaid.reflectmaid.ReflectMaidreflectMaid()InjectMaidBuilderrootBuilder()InjectMaidBuilderusingDefaultSingletonType(SingletonType singletonType)InjectMaidBuilderwithConfiguration(InjectorConfiguration configuration)InjectMaidBuilderwithCustomType(CustomType customType, ReusePolicy reusePolicy)InjectMaidBuilderwithFactory(de.quantummaid.reflectmaid.GenericType<?> type, de.quantummaid.reflectmaid.GenericType<?> factory, ReusePolicy reusePolicy)<X> InjectMaidBuilderwithImplementation(de.quantummaid.reflectmaid.GenericType<X> interfaceType, de.quantummaid.reflectmaid.GenericType<? extends X> implementationType, ReusePolicy reusePolicy)InjectMaidBuilderwithInstantiator(de.quantummaid.reflectmaid.resolvedtype.ResolvedType resolvedType, Instantiator instantiator, ReusePolicy reusePolicy)InjectMaidBuilderwithInstantiator(de.quantummaid.reflectmaid.typescanner.TypeIdentifier typeIdentifier, Instantiator instantiator, ReusePolicy reusePolicy)InjectMaidBuilderwithInterceptorFactory(InterceptorFactory interceptorFactory)InjectMaidBuilderwithLifecycleManagement()InjectMaidBuilderwithScope(de.quantummaid.reflectmaid.GenericType<?> scopeType, InjectorConfiguration configuration)InjectMaidBuilderwithScope(de.quantummaid.reflectmaid.typescanner.TypeIdentifier scopeType, InjectorConfiguration configuration)InjectMaidBuilderwithStateFactory(de.quantummaid.reflectmaid.typescanner.factories.StateFactory<InjectMaidTypeScannerResult> stateFactory)InjectMaidBuilderwithType(de.quantummaid.reflectmaid.GenericType<?> type, ReusePolicy reusePolicy)InjectMaidBuilderwithType(de.quantummaid.reflectmaid.resolvedtype.ResolvedType type, 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
-
Methods inherited from interface de.quantummaid.injectmaid.api.builder.ImplementationConfigurators
withImplementation, withImplementation, withImplementation
-
Methods inherited from interface de.quantummaid.injectmaid.api.builder.ScopeConfigurators
withScope
-
Methods inherited from interface de.quantummaid.injectmaid.api.builder.TypeConfigurators
withType, withType, withType
-
-
-
-
Method Detail
-
withConfiguration
public InjectMaidBuilder withConfiguration(InjectorConfiguration configuration)
- Specified by:
withConfigurationin interfaceConfigurationConfigurators<InjectMaidBuilder>
-
withScope
public InjectMaidBuilder withScope(de.quantummaid.reflectmaid.GenericType<?> scopeType, InjectorConfiguration configuration)
- Specified by:
withScopein interfaceScopeConfigurators<InjectMaidBuilder>
-
withScope
public InjectMaidBuilder withScope(de.quantummaid.reflectmaid.typescanner.TypeIdentifier scopeType, InjectorConfiguration configuration)
-
rootBuilder
public InjectMaidBuilder rootBuilder()
-
withLifecycleManagement
public InjectMaidBuilder withLifecycleManagement()
-
withFactory
public InjectMaidBuilder withFactory(de.quantummaid.reflectmaid.GenericType<?> type, de.quantummaid.reflectmaid.GenericType<?> factory, ReusePolicy reusePolicy)
- Specified by:
withFactoryin interfaceFactoryConfigurators<InjectMaidBuilder>
-
withImplementation
public <X> InjectMaidBuilder withImplementation(de.quantummaid.reflectmaid.GenericType<X> interfaceType, de.quantummaid.reflectmaid.GenericType<? extends X> implementationType, ReusePolicy reusePolicy)
- Specified by:
withImplementationin interfaceImplementationConfigurators<InjectMaidBuilder>
-
withType
public InjectMaidBuilder withType(de.quantummaid.reflectmaid.GenericType<?> type, ReusePolicy reusePolicy)
- Specified by:
withTypein interfaceTypeConfigurators<InjectMaidBuilder>
-
withType
public InjectMaidBuilder withType(de.quantummaid.reflectmaid.resolvedtype.ResolvedType type, ReusePolicy reusePolicy)
-
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 resolvedType, Instantiator instantiator, ReusePolicy reusePolicy)
-
withInstantiator
public InjectMaidBuilder withInstantiator(de.quantummaid.reflectmaid.typescanner.TypeIdentifier typeIdentifier, Instantiator instantiator, ReusePolicy reusePolicy)
-
withStateFactory
public InjectMaidBuilder withStateFactory(de.quantummaid.reflectmaid.typescanner.factories.StateFactory<InjectMaidTypeScannerResult> stateFactory)
-
enforcingMaximumInstantiationTimeOf
public InjectMaidBuilder enforcingMaximumInstantiationTimeOf(Duration maxInstantiationTime)
-
withInterceptorFactory
public InjectMaidBuilder withInterceptorFactory(InterceptorFactory interceptorFactory)
-
closingInstancesOfType
public <T> InjectMaidBuilder closingInstancesOfType(Class<T> type, CloseFunction<T> closeFunction)
-
closeOnJvmShutdown
public InjectMaidBuilder closeOnJvmShutdown()
-
reflectMaid
public de.quantummaid.reflectmaid.ReflectMaid reflectMaid()
-
build
public InjectMaid build()
-
-