All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.osgl.inject.provider.NullValueProvider Maven / Gradle / Ivy

There is a newer version: 1.13.2
Show newest version
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