This class loader is able to load all published URE classes, including the
classes representing the published URE UNO types. For consistency, it is
important that within each Java UNO environment there is one instance of this
class loader that is the defining class loader of all published URE classes
(and hence of all unpublished URE classes, too) and of all classes
representing UNO types (the published URE UNO types, any unpublished URE UNO
types, and any additional UNO types introduced by components; for the latter,
addURL may be necessary).
This is an internal, unstable class of the Uno Runtime Environment; it should not be used by client code.
| Access | Constructor and Description |
|---|---|
| public | UnoClassLoader(URL
a base URL relative to which the URE JARs
( base, URL[] java_uno.jar and libreoffice.jar)
can be found; must not be null.an array of URLs that form the class path of this class
loader; may be classPath, ClassLoader null, which is the same as an empty array.
The URLs are interpreted in the same way as the arguments of a URLClassLoader.the parent class loader for delegation. parent)Instantiates the root UNO class loader. |
| Modifier and Type | Method and Description |
|---|---|
| private static URL[] | |
| public void | |
| public ClassLoader | Returns: an appropriate class loader; will never benull.the URL of a UNO JAR; must not be jar, Attributes null.represents the main section of the manifest of the
given JAR mainAttributes)jar; null if the given JAR does not
have a manifest. (This redundant parameter is there for performance
reasons, as typically the caller of this method already has this
information available.)Obtains a class loader for a UNO JAR. |
| public static Attributes | Returns: the representation of the main section of the manifest of the given JARjar, or null if the given JAR does
not have a manifest.the URL of a JAR; must not be jar)null.Obtains the main section of the manifest of a JAR. |
| UnoClassLoader | back to summary |
|---|---|
| public UnoClassLoader(URL base, URL[] classPath, ClassLoader parent) throws MalformedURLException Instantiates the root UNO class loader.
| |
| createUrls | back to summary |
|---|---|
| private static URL[] createUrls(URL base, URL[] classPath) throws MalformedURLException | |
| execute | back to summary |
|---|---|
| public void execute(URL jar, String[] arguments) throws IOException, ClassNotFoundException, NoSuchMethodException, InvocationTargetException Executes a UNO JAR.
| |
| getClassLoader | back to summary |
|---|---|
| public ClassLoader getClassLoader(URL jar, Attributes mainAttributes) throws MalformedURLException Obtains a class loader for a UNO JAR.
| |
| getJarMainAttributes | back to summary |
|---|---|
| public static Attributes getJarMainAttributes(URL jar) throws IOException Obtains the main section of the manifest of a JAR.
| |