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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinjectInto(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:
injectIntoin interfaceInjection- Parameters:
instance- the instance where things should be injected.- Throws:
ReflectiveOperationException- if there is a problem
-