NOS.system
Class NOSClassLoader

java.lang.Object
  extended by NOS.system.NOSClassLoader

public class NOSClassLoader
extends java.lang.Object


Constructor Summary
NOSClassLoader()
          Create a new NOSClassLoader
 
Method Summary
 NOSApplication getInstanceOf(java.lang.String className)
          Create a new instance of a named NOSApplication class.
 NOSDesktopBackgroundPlugin getInstanceOfDesktopBackgroundPlugin(java.lang.String className, java.lang.String path, java.awt.Component comp)
          Create a new instance of a named NOSDesktopBackgroundPlugin class.
 void importJar(java.lang.String jarName)
          Imports all the classes in a given JAR file into this class loader.
 java.util.Enumeration listLoadedJars()
          Returns an Enumeration of all the loaded JAR files.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NOSClassLoader

public NOSClassLoader()
Create a new NOSClassLoader

Method Detail

listLoadedJars

public java.util.Enumeration listLoadedJars()
Returns an Enumeration of all the loaded JAR files.

Returns:
An Enumeration of all the loaded JAR files.

importJar

public void importJar(java.lang.String jarName)
               throws java.io.IOException
Imports all the classes in a given JAR file into this class loader.

Parameters:
jarName - The name of the jar file to be imported.
Throws:
java.io.IOException - Throws an exception if something goes wrong when importing the named JAR file.

getInstanceOf

public NOSApplication getInstanceOf(java.lang.String className)
Create a new instance of a named NOSApplication class.

Parameters:
className - The 'binary name' of the class.
Returns:
The NOSApplication instance or null.

getInstanceOfDesktopBackgroundPlugin

public NOSDesktopBackgroundPlugin getInstanceOfDesktopBackgroundPlugin(java.lang.String className,
                                                                       java.lang.String path,
                                                                       java.awt.Component comp)
Create a new instance of a named NOSDesktopBackgroundPlugin class.

Parameters:
className - The 'binary name' of the class.
path - The path to the file to load as a background
comp - The Component onto which the background will be drawn.
Returns:
The NOSDesktopBackgroundPlugin instance or null.