com.github.nill14.utils.init.impl.BeanInjector Maven / Gradle / Ivy
package com.github.nill14.utils.init.impl;
import com.github.nill14.utils.init.api.IBeanInjector;
import com.github.nill14.utils.init.api.IParameterType;
import com.github.nill14.utils.init.api.IPojoFactory;
import com.github.nill14.utils.init.api.IPojoInitializer;
import com.github.nill14.utils.init.api.IPropertyResolver;
import com.google.common.reflect.TypeToken;
@SuppressWarnings("unchecked")
public class BeanInjector implements IBeanInjector {
private final IPropertyResolver resolver;
private final IPojoInitializer initializer;
public BeanInjector(IPropertyResolver resolver) {
this.resolver = resolver;
this.initializer = IPojoInitializer.standard();
}
public BeanInjector(IPropertyResolver resolver, IPojoInitializer initializer) {
this.resolver = resolver;
this.initializer = initializer;
}
public void wire(Object bean) {
IPojoFactory
© 2015 - 2025 Weber Informatics LLC | Privacy Policy