public class UpgradeClassLoader
extends java.lang.Object
This class factors out the machinery needed to wrap a class loader around the jar files for an old release.
Modifier and Type | Field and Description |
---|---|
private static java.lang.String[] |
jarFiles |
(package private) static java.lang.String |
jarPath |
(package private) static java.lang.String |
oldVersionsPath |
Constructor and Description |
---|
UpgradeClassLoader() |
Modifier and Type | Method and Description |
---|---|
private static java.lang.ClassLoader |
createClassLoader(int[] version)
Create a class loader using jars in the specified location.
|
private static byte[] |
fetchDriverUnloaderBytes()
Get a byte array with the contents of the class file for the
DriverUnloader class. |
private static java.lang.String |
getOldJarLocation(int[] oldVersion)
Get the location of jars of old release.
|
private static java.lang.String |
getOldJarURLLocation(int[] oldVersion)
Get the location of jars of old release, using the url for svn at apache.
|
private static java.lang.String |
getSystemProperty(java.lang.String key) |
protected static java.lang.String |
getTextVersion(int[] iv) |
static java.lang.ClassLoader |
makeClassLoader(int[] version)
Wrap a class loader around the given version.
|
private static final java.lang.String[] jarFiles
static final java.lang.String oldVersionsPath
static final java.lang.String jarPath
private static java.lang.String getSystemProperty(java.lang.String key)
protected static java.lang.String getTextVersion(int[] iv)
public static java.lang.ClassLoader makeClassLoader(int[] version)
Wrap a class loader around the given version.
private static java.lang.String getOldJarLocation(int[] oldVersion)
private static java.lang.String getOldJarURLLocation(int[] oldVersion)
private static java.lang.ClassLoader createClassLoader(int[] version)
version
- the Derby version to create a classloader for.private static byte[] fetchDriverUnloaderBytes() throws java.io.IOException
DriverUnloader
class.java.io.IOException
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.