Package com.gitee.apanlh.util.check
Enum CheckLibrary
- java.lang.Object
-
- java.lang.Enum<CheckLibrary>
-
- com.gitee.apanlh.util.check.CheckLibrary
-
- All Implemented Interfaces:
Serializable,Comparable<CheckLibrary>
public enum CheckLibrary extends Enum<CheckLibrary>
该类用于映射第三方库名与加载第三方类- Author:
- Pan
-
-
Enum Constant Summary
Enum Constants Enum Constant Description APACHE_NET用于检测FTP NET包BOUNCY_CASTLE加解密BC依赖FASTJSONFastJson依赖FASTJSON2FastJson2依赖IP2REGIONIP地址依赖JACKSONJackson依赖JWTJWT依赖PDFPDF依赖POIPOI依赖QRCODE二维码依赖SPRING_CORESping_Core核心依赖SPRING_REDISSpring_Redis依赖SPRING_WEBSpring_Web依赖THREAD_AFFINITY线程绑定依赖XSTREAMXML解析依赖ZIP_BROTLI压缩算法_BROTLIZIP_LZ4压缩算法_LZ4ZIP_SNAPPY压缩算法_Snappy
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetLibraryName()获取依赖库名StringgetLoadClassName()获取加载类名StringgetLoadVersion()获取加载版本Class<?>load()加载依赖库static Class<?>load(String loadClassName)加载依赖库static CheckLibraryvalueOf(String name)Returns the enum constant of this type with the specified name.static CheckLibrary[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
JWT
public static final CheckLibrary JWT
JWT依赖
-
BOUNCY_CASTLE
public static final CheckLibrary BOUNCY_CASTLE
加解密BC依赖
-
SPRING_WEB
public static final CheckLibrary SPRING_WEB
Spring_Web依赖
-
SPRING_CORE
public static final CheckLibrary SPRING_CORE
Sping_Core核心依赖
-
SPRING_REDIS
public static final CheckLibrary SPRING_REDIS
Spring_Redis依赖
-
XSTREAM
public static final CheckLibrary XSTREAM
XML解析依赖
-
ZIP_LZ4
public static final CheckLibrary ZIP_LZ4
压缩算法_LZ4
-
ZIP_SNAPPY
public static final CheckLibrary ZIP_SNAPPY
压缩算法_Snappy
-
ZIP_BROTLI
public static final CheckLibrary ZIP_BROTLI
压缩算法_BROTLI
-
QRCODE
public static final CheckLibrary QRCODE
二维码依赖
-
FASTJSON
public static final CheckLibrary FASTJSON
FastJson依赖
-
FASTJSON2
public static final CheckLibrary FASTJSON2
FastJson2依赖
-
JACKSON
public static final CheckLibrary JACKSON
Jackson依赖
-
IP2REGION
public static final CheckLibrary IP2REGION
IP地址依赖
-
POI
public static final CheckLibrary POI
POI依赖
-
PDF
public static final CheckLibrary PDF
PDF依赖
-
APACHE_NET
public static final CheckLibrary APACHE_NET
用于检测FTP NET包
-
THREAD_AFFINITY
public static final CheckLibrary THREAD_AFFINITY
线程绑定依赖
-
-
Method Detail
-
values
public static CheckLibrary[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CheckLibrary c : CheckLibrary.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CheckLibrary valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getLibraryName
public String getLibraryName()
获取依赖库名- Returns:
- String
-
getLoadClassName
public String getLoadClassName()
获取加载类名- Returns:
- String
-
getLoadVersion
public String getLoadVersion()
获取加载版本- Returns:
- String
-
load
public Class<?> load()
加载依赖库- Returns:
- Class 加载类
- Throws:
NotFoundException- 如果不存在某第三方库抛出此异常
-
load
public static Class<?> load(String loadClassName)
加载依赖库- Parameters:
loadClassName- 加载全限定名- Returns:
- Class 加载类
- Throws:
NotFoundException- 如果不存在某第三方库抛出此异常
-
-