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

Alachisoft.NCache.Common.Net.MemoryManager Maven / Gradle / Ivy

package Alachisoft.NCache.Common.Net;


public class MemoryManager {
    private java.util.HashMap _objectProviders = new java.util.HashMap();

    public final void RegisterObjectProvider(ObjectProvider proivder) {
        if (!_objectProviders.containsKey(proivder.getObjectType())) {
            _objectProviders.put(proivder.getObjectType(), proivder);
        }
    }

    public final ObjectProvider GetProvider(java.lang.Class objType) {
        if (_objectProviders.containsKey(objType)) {
            return (ObjectProvider) _objectProviders.get(objType);
        }
        return null;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy