xapi.util.impl.LazyProvider Maven / Gradle / Ivy
package xapi.util.impl;
import javax.inject.Provider;
import xapi.inject.impl.SingletonProvider;
public class LazyProvider extends SingletonProvider {
private final Provider provider;
public LazyProvider(Provider provider) {
this.provider = provider;
}
@Override
protected final T initialValue() {
return provider.get();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy