org.osgl.inject.provider.NullValueProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of genie Show documentation
Show all versions of genie Show documentation
A JSR330 style dependency injection solution
package org.osgl.inject.provider;
import javax.inject.Provider;
/**
* A provider that always returns `null`
*/
public class NullValueProvider implements Provider {
public static final Provider INSTANCE = new NullValueProvider();
private NullValueProvider() {}
@Override
public Object get() {
return null;
}
public static Provider instance() {
return INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy