com.github.leeonky.jfactory.UnFixedValueProducer Maven / Gradle / Ivy
package com.github.leeonky.jfactory;
import com.github.leeonky.util.BeanClass;
import java.util.function.Supplier;
class UnFixedValueProducer extends Producer {
private final Supplier supplier;
public UnFixedValueProducer(Supplier supplier, BeanClass type) {
super(type);
this.supplier = supplier;
}
@Override
protected T produce() {
return supplier.get();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy