Class TypeSetInjection
java.lang.Object
io.github.cjstehno.testthings.inject.TypeSetInjection
- All Implemented Interfaces:
Injection
Provides injection of values based on the field/property type rather than the name.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
injectInto
(Object instance) Injects the value into all properties/fields of the configured type.
-
Constructor Details
-
TypeSetInjection
public TypeSetInjection()
-
-
Method Details
-
injectInto
Injects the value into all properties/fields of the configured type.- Specified by:
injectInto
in interfaceInjection
- Parameters:
instance
- the instance where things should be injected.- Throws:
ReflectiveOperationException
- if there is a problem
-