public class DynLoader extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
CLDHACK |
static String |
CPDLM |
Constructor and Description |
---|
DynLoader() |
Modifier and Type | Method and Description |
---|---|
static String[] |
generateSymbolNames(Class<?> clss,
String pfx,
int maxval) |
static HashedMapIntKey<String> |
generateSymbolNamess(Class<?> clss,
String pfx) |
protected static ClassLoader |
getClassLoader() |
static String |
getClassLoaderPath(String rsrcname,
Class<?> clss) |
static Object |
getField(Class<?> clss,
String fldnam,
Object obj) |
static Object |
getField(Object obj,
String fldnam) |
static URL |
getLoaderResource(String path,
ClassLoader cld) |
static URL |
getResource(CharSequence stem,
boolean classpfx,
Class<?> clss) |
static URL |
getResource(String path) |
static URL |
getResource(String path,
Class<?> clss) |
static ArrayList<URL> |
load(String cp) |
static ArrayList<URL> |
load(String[] cp) |
static Class<?> |
loadClass(String targetclass) |
static ArrayList<URL> |
loadFromDir(String dirpath) |
static byte[] |
readBinaryResource(String path,
Class<?> clss) |
static String |
readTextResource(String path,
Class<?> clss) |
static void |
setField(Class<?> clss,
String fldnam,
Object fldval,
Object obj) |
static void |
setField(Object obj,
String fldnam,
Object fldval) |
static boolean |
unload(ClassLoader cld) |
public static final String CPDLM
public static final boolean CLDHACK
public static Class<?> loadClass(String targetclass) throws ClassNotFoundException
ClassNotFoundException
public static URL getLoaderResource(String path, ClassLoader cld)
public static URL getResource(CharSequence stem, boolean classpfx, Class<?> clss)
public static ArrayList<URL> loadFromDir(String dirpath) throws IOException, URISyntaxException, NoSuchMethodException, IllegalAccessException, InvocationTargetException
public static ArrayList<URL> load(String cp) throws IOException, URISyntaxException, NoSuchMethodException, IllegalAccessException, InvocationTargetException
public static ArrayList<URL> load(String[] cp) throws IOException, URISyntaxException, NoSuchMethodException, IllegalAccessException, InvocationTargetException
public static boolean unload(ClassLoader cld)
protected static ClassLoader getClassLoader()
public static String[] generateSymbolNames(Class<?> clss, String pfx, int maxval)
public static HashedMapIntKey<String> generateSymbolNamess(Class<?> clss, String pfx)
Copyright 2010-2018 Grey Software (Yusef Badri). All Rights Reserved.