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

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

There is a newer version: 1.13.2
Show newest version
package org.osgl.inject.provider;

import javax.inject.Provider;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;

/**
 * Inject {@link java.util.concurrent.ConcurrentMap} with {@link ConcurrentHashMap}
 * implementation
 */
public class ConcurrentMapProvider implements Provider> {

    public static final ConcurrentMapProvider INSTANCE = new ConcurrentMapProvider();

    @Override
    public ConcurrentMap get() {
        return new ConcurrentHashMap();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy