|
||||||||
| 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 File |
findOpenNMSHome()
Determine the OpenNMS home directory based on the location of the JAR file containing this code. |
static ClassLoader |
loadClasses(File dir,
boolean recursive)
Create a ClassLoader with the JARs found in dir. |
static void |
loadClasses(File dir,
boolean recursive,
LinkedList<URL> urls)
Add JARs found in dir to the LinkedList urls. |
static ClassLoader |
loadClasses(String dirStr,
boolean recursive)
Create a ClassLoader with the JARs found in dirStr. |
static void |
main(String[] args)
Bootloader main method. |
static ClassLoader |
newClassLoader(LinkedList<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 ClassLoader loadClasses(String dirStr,
boolean recursive)
throws MalformedURLException
dirStr - List of directories to search for JARs, separated by
File.pathSeparatorrecursive - Whether to recurse into subdirectories of the directories in
dirStr
MalformedURLException
public static ClassLoader loadClasses(File dir,
boolean recursive)
throws MalformedURLException
dir - Directory to search for JARsrecursive - Whether to recurse into subdirectories of dir
MalformedURLExceptionpublic static ClassLoader newClassLoader(LinkedList<URL> urls)
urls - List of URLs to add to the ClassLoader's search list.
public static void loadClasses(File dir,
boolean recursive,
LinkedList<URL> urls)
throws MalformedURLException
dir - Directory to search for JARsrecursive - Whether to recurse into subdirectories of the directory in
dirurls - LinkedList to append found JARs onto
MalformedURLExceptionpublic static File findOpenNMSHome()
public static void main(String[] args)
throws 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
Exception
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||