com.lutris.classloader
Interface MultiClassLoader.ClassFilter
- Enclosing class:
- MultiClassLoader
- public static interface MultiClassLoader.ClassFilter
A filter interface, used in deciding if a class should be loaded
by this class loader.
Field Summary |
static int |
CAN_LOAD
Value returned to indicate that the class can be loaded
by this class loader. |
static int |
DONT_LOAD
Value returned to indicate that the class should not be loaded
by this class loader. |
static int |
MUST_LOAD
Value returned to indicate that the class must loaded
by this class loader. |
static int |
NORMAL_LOAD
Value returned to indicate that we don't care, other filters
maybe checked. |
Method Summary |
int |
loadCheck(java.lang.String className)
Check if a class should be loaded by this class loader. |
NORMAL_LOAD
public static final int NORMAL_LOAD
- Value returned to indicate that we don't care, other filters
maybe checked.
DONT_LOAD
public static final int DONT_LOAD
- Value returned to indicate that the class should not be loaded
by this class loader. Normal delation/secondary class loader
checks will be done.
CAN_LOAD
public static final int CAN_LOAD
- Value returned to indicate that the class can be loaded
by this class loader. If it is not loaded, it will be
passed to the secondary class loader. The delegate
is not check, since it is check before this class loader.
MUST_LOAD
public static final int MUST_LOAD
- Value returned to indicate that the class must loaded
by this class loader. If it is not loaded, not other
class loader will be checked.
loadCheck
public int loadCheck(java.lang.String className)
- Check if a class should be loaded by this class loader.
- Parameters:
className
- the class being loaded.- Returns:
- One of NORMAL_LOAD, DONT_LOAD, CAN_LOAD, or MUST_LOAD.