Package org.eclipse.jetty.util
Class Loader
java.lang.Object
org.eclipse.jetty.util.Loader
Deprecated.
The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
ClassLoader Helper.
This helper class allows classes to be loaded either from the
Thread's ContextClassLoader, the classloader of the derived class
or the system ClassLoader.
Usage:
public class MyClass {
void myMethod() {
...
Class c=Loader.loadClass(this.getClass(),classname);
...
}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic URLgetResource(String name) Deprecated.static ResourceBundlegetResourceBundle(String name, boolean checkParents, Locale locale) Deprecated.static ClassDeprecated.Load a class.static ClassDeprecated.Load a class.
-
Constructor Details
-
Loader
public Loader()Deprecated.
-
-
Method Details
-
getResource
Deprecated. -
loadClass
Deprecated.Load a class.Load a class either from the thread context classloader or if none, the system loader
- Parameters:
name- the name of the new class to load- Returns:
- Class
- Throws:
ClassNotFoundException- if not able to find the class
-
loadClass
Deprecated.Load a class. Load a class from the same classloader as the passedloadClass, or if none then useloadClass(String)- Parameters:
loaderClass- a similar class, belong in the same classloader of the desired class to loadname- the name of the new class to load- Returns:
- Class
- Throws:
ClassNotFoundException- if not able to find the class
-
getResourceBundle
public static ResourceBundle getResourceBundle(String name, boolean checkParents, Locale locale) throws MissingResourceException Deprecated.- Throws:
MissingResourceException
-