org.osgl.inject.provider.ConcurrentMapProvider 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;
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