Package com.killcoding.tool
Class CommonTools
java.lang.Object
com.killcoding.tool.CommonTools
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaverageAssign(List<T> source, int limit) findSubDirs(String dir) static StringgenerateId(int len) static Stringstatic StringgetJarPath(Class clazz) static FilegetSystemProperties(Class clazz, String envKey, String propFileName) static booleanstatic URLClassLoaderstatic URLClassLoaderstatic URLClassLoaderloadJars(String[] libDirs, ClassLoader classLoader) static URLClassLoaderloadJars(String libDirs, ClassLoader classLoader) static String
-
Field Details
-
HOSTNAME
-
-
Constructor Details
-
CommonTools
public CommonTools()
-
-
Method Details
-
loadJars
- Throws:
Exception
-
loadJars
- Throws:
Exception
-
loadJars
- Throws:
Exception
-
loadJars
- Throws:
Exception
-
findFiles
- Throws:
IOException
-
findFiles
- Throws:
IOException
-
findSubDirs
- Throws:
IOException
-
getJarPath
-
isBlank
-
getSystemProperties
-
getHostname
-
generateId
-
averageAssign
-
md5
-