Enum CallParentClassLoader
- java.lang.Object
-
- java.lang.Enum<CallParentClassLoader>
-
- jetbrains.buildServer.plugins.classLoaders.CallParentClassLoader
-
- All Implemented Interfaces:
Serializable
,Comparable<CallParentClassLoader>
public enum CallParentClassLoader extends Enum<CallParentClassLoader>
- Author:
- Eugene Petrenko (eugene.petrenko@gmail.com) 16.08.2010
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEFAULT
TOMCAT_6_0_21_to_6_0_26_loader
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CallParentClassLoader
getLoader()
protected boolean
isAvailable()
Class<?>
loadClassFromParent(ClassLoader parent, String name)
static CallParentClassLoader
valueOf(String name)
Returns the enum constant of this type with the specified name.static CallParentClassLoader[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TOMCAT_6_0_21_to_6_0_26_loader
public static final CallParentClassLoader TOMCAT_6_0_21_to_6_0_26_loader
-
DEFAULT
public static final CallParentClassLoader DEFAULT
-
-
Method Detail
-
values
public static CallParentClassLoader[] 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 (CallParentClassLoader c : CallParentClassLoader.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CallParentClassLoader 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
-
loadClassFromParent
public Class<?> loadClassFromParent(@NotNull ClassLoader parent, @NotNull String name) throws ClassNotFoundException
- Throws:
ClassNotFoundException
-
isAvailable
protected boolean isAvailable()
-
getLoader
@NotNull public static CallParentClassLoader getLoader()
-
-