|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.bootstrap.Bootstrap
public class Bootstrap
Bootstrap application for starting OpenNMS.
| Constructor Summary | |
|---|---|
Bootstrap()
|
|
| Method Summary | |
|---|---|
static java.io.File |
findOpenNMSHome()
Determine the OpenNMS home directory based on the location of the JAR file containing this code. |
static java.lang.ClassLoader |
loadClasses(java.io.File dir,
boolean recursive)
Create a ClassLoader with the JARs found in dir. |
static void |
loadClasses(java.io.File dir,
boolean recursive,
java.util.LinkedList<java.net.URL> urls)
Add JARs found in dir to the LinkedList urls. |
static java.lang.ClassLoader |
loadClasses(java.lang.String dirStr,
boolean recursive)
Create a ClassLoader with the JARs found in dirStr. |
static void |
main(java.lang.String[] args)
Bootloader main method. |
static java.lang.ClassLoader |
newClassLoader(java.util.LinkedList<java.net.URL> urls)
Create a ClassLoader with the list of URLs found in urls. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Bootstrap()
| Method Detail |
|---|
public static java.lang.ClassLoader loadClasses(java.lang.String dirStr,
boolean recursive)
throws java.net.MalformedURLException
dirStr - List of directories to search for JARs, separated by
File.pathSeparatorrecursive - Whether to recurse into subdirectories of the directories in
dirStr
java.net.MalformedURLException
public static java.lang.ClassLoader loadClasses(java.io.File dir,
boolean recursive)
throws java.net.MalformedURLException
dir - Directory to search for JARsrecursive - Whether to recurse into subdirectories of dir
java.net.MalformedURLExceptionpublic static java.lang.ClassLoader newClassLoader(java.util.LinkedList<java.net.URL> urls)
urls - List of URLs to add to the ClassLoader's search list.
public static void loadClasses(java.io.File dir,
boolean recursive,
java.util.LinkedList<java.net.URL> urls)
throws java.net.MalformedURLException
dir - Directory to search for JARsrecursive - Whether to recurse into subdirectories of the directory in
dirurls - LinkedList to append found JARs onto
java.net.MalformedURLExceptionpublic static java.io.File findOpenNMSHome()
public static void main(java.lang.String[] args)
throws java.lang.Exception
findOpenNMSHome to determine the
OpenNMS home directory if the bootstrap.properties file has not yet
been loaded. Sets the opennms.home system property to the path returned
from findOpenNMSHome.loadClasses to create
a new ClassLoader. ${opennms.home}/etc and ${opennms.home/lib} are
passed to loadClasses.
args - Command line arguments
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||