Interface Injector<T>
- All Known Implementing Classes:
SimpleInjector
public interface Injector<T>
-
Method Summary
Modifier and TypeMethodDescriptionvoid
initialize
(T object, ValueProvider provider) Initializes an instance by setting values retrieved from the specifiedValueProvider
.instantiate
(ValueProvider provider) Creates a new instance by searching for a ctor that can be matched using values from the specified value provider.
-
Method Details
-
instantiate
Creates a new instance by searching for a ctor that can be matched using values from the specified value provider. The best constructor is used, which is the one with the greatest number of arguments that can be retrieved using the specifiedValueProvider
.- Throws:
InjectException
-
initialize
Initializes an instance by setting values retrieved from the specifiedValueProvider
.- Throws:
InjectException
-