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

com.firefly.utils.classproxy.AbstractProxyFactory Maven / Gradle / Ivy

There is a newer version: 4.0.3.2
Show newest version
package com.firefly.utils.classproxy;

import com.firefly.utils.ReflectUtils.ProxyFactory;
import com.firefly.utils.collection.IdentityHashMap;

public abstract class AbstractProxyFactory implements ProxyFactory {
	
	static final IdentityHashMap, String> primitiveWrapMap = new IdentityHashMap, String>();
	public static ClassLoader classLoader;
	
	static {
		primitiveWrapMap.put(short.class, Short.class.getCanonicalName());
		primitiveWrapMap.put(byte.class, Byte.class.getCanonicalName());
		primitiveWrapMap.put(int.class, Integer.class.getCanonicalName());
		primitiveWrapMap.put(char.class, Character.class.getCanonicalName());
		primitiveWrapMap.put(float.class, Float.class.getCanonicalName());
		primitiveWrapMap.put(double.class, Double.class.getCanonicalName());
		primitiveWrapMap.put(long.class, Long.class.getCanonicalName());
		primitiveWrapMap.put(boolean.class, Boolean.class.getCanonicalName());
		
		classLoader = Thread.currentThread().getContextClassLoader();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy