commons.box.bean.AppClass Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commons-box-bean Show documentation
Show all versions of commons-box-bean Show documentation
Common utils for BOX projects.
The newest version!
package commons.box.bean;
import commons.box.app.AppError;
import commons.box.app.AppLog;
import commons.box.app.SafeRefMap;
import commons.box.bean.internal.InternalClassAccess;
import commons.box.util.Logs;
import commons.box.util.Strs;
import commons.box.util.Types;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
/**
* 创建作者:xingxiuyi
* 版权所属:xingxiuyi
*/
public final class AppClass {
private static final AppLog LOG = Logs.get(AppClass.class);
private static final String ASM_CLASS_LOADER_NAME = "commons.box.bean.InternalASMClassAccess";
private static final Map> CACHE_DEFAULT = new ConcurrentHashMap<>();
private static final Map> CACHE_ASM = new ConcurrentHashMap<>();
private static final Map> CACHE_INNER = new SafeRefMap<>(); // TODO 需使用单例 独立的用于缓存临时类的空间
private static final AccessClassLoader LOADER_DEFAULT = new InternalClassLoader();
public static AccessClassLoader LOADER_ASM = LOADER_DEFAULT;
private static final boolean ASM = detectASM();
private static final AppClass
© 2015 - 2025 Weber Informatics LLC | Privacy Policy