|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ClassLoaderUtils.ClassLoaderTypes>
com.zmicer.utils.ClassLoaderUtils.ClassLoaderTypes
public static enum ClassLoaderUtils.ClassLoaderTypes
Possible Class Loaders types Enum. It would also allow to get the code of the classloader iterating thourgh the List of
ClassLoaders returned by the retrieveActualClassLoaders
method.
Enum Constant Summary | |
---|---|
CURRENT_CLASS
Class Loader of the current class |
|
CURRENT_THREAD_CONTEXT
Class Loader of the current thread context |
|
SYSTEM
System Class Loader |
Method Summary | |
---|---|
int |
getOrdNumber()
|
static ClassLoaderUtils.ClassLoaderTypes |
getTypeByOrdNumber(int ordNumber)
Return the ClassLoaderTypes instance using the provided ordinal number |
static ClassLoaderUtils.ClassLoaderTypes |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ClassLoaderUtils.ClassLoaderTypes[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ClassLoaderUtils.ClassLoaderTypes CURRENT_THREAD_CONTEXT
public static final ClassLoaderUtils.ClassLoaderTypes CURRENT_CLASS
public static final ClassLoaderUtils.ClassLoaderTypes SYSTEM
Method Detail |
---|
public static final ClassLoaderUtils.ClassLoaderTypes[] values()
for(ClassLoaderUtils.ClassLoaderTypes c : ClassLoaderUtils.ClassLoaderTypes.values()) System.out.println(c);
public static ClassLoaderUtils.ClassLoaderTypes valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified namepublic int getOrdNumber()
public static ClassLoaderUtils.ClassLoaderTypes getTypeByOrdNumber(int ordNumber)
ClassLoaderTypes
instance using the provided ordinal number
ordNumber
- ordinal number of the types
null
if the wrong ordNumber was specified
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |