Package de.quantummaid.injectmaid
Class InjectMaid
- java.lang.Object
-
- de.quantummaid.injectmaid.InjectMaid
-
- All Implemented Interfaces:
Injector,AutoCloseable
public final class InjectMaid extends Object implements Injector
-
-
Constructor Summary
Constructors Constructor Description InjectMaid()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddInterceptor(SimpleInterceptor interceptor)static InjectMaidBuilderanInjectMaid()booleancanInstantiate(de.quantummaid.reflectmaid.ResolvedType resolvedType)voidclose()StringdebugInformation()InjectMaidenterScope(de.quantummaid.reflectmaid.ResolvedType resolvedType, Object scopeObject)TimedInstantiation<Object>getInstanceWithInitializationTime(de.quantummaid.reflectmaid.ResolvedType type)voidinitializeAllSingletons()InstantiationTimesinstantiationTimes()voidoverwriteWith(Injector injector)-
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.Injector
canInstantiate, canInstantiate, enterScope, enterScope, enterScope, getInstance, getInstance, getInstance, getInstanceWithInitializationTime, getInstanceWithInitializationTime
-
-
-
-
Method Detail
-
anInjectMaid
public static InjectMaidBuilder anInjectMaid()
-
initializeAllSingletons
public void initializeAllSingletons()
- Specified by:
initializeAllSingletonsin interfaceInjector
-
enterScope
public InjectMaid enterScope(de.quantummaid.reflectmaid.ResolvedType resolvedType, Object scopeObject)
- Specified by:
enterScopein interfaceInjector
-
addInterceptor
public void addInterceptor(SimpleInterceptor interceptor)
- Specified by:
addInterceptorin interfaceInjector
-
overwriteWith
public void overwriteWith(Injector injector)
- Specified by:
overwriteWithin interfaceInjector
-
getInstanceWithInitializationTime
public TimedInstantiation<Object> getInstanceWithInitializationTime(de.quantummaid.reflectmaid.ResolvedType type)
- Specified by:
getInstanceWithInitializationTimein interfaceInjector
-
canInstantiate
public boolean canInstantiate(de.quantummaid.reflectmaid.ResolvedType resolvedType)
- Specified by:
canInstantiatein interfaceInjector
-
debugInformation
public String debugInformation()
-
instantiationTimes
public InstantiationTimes instantiationTimes()
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceInjector
-
-