org.mbari.siam.core
Class DeviceServiceClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by org.mbari.siam.utils.MultiClassLoader
          extended by org.mbari.siam.utils.JarClassLoader
              extended by org.mbari.siam.core.DeviceServiceClassLoader

public class DeviceServiceClassLoader
extends JarClassLoader

Load DeviceService classes from jar file.

Author:
Mike Risi

Field Summary
 
Fields inherited from class org.mbari.siam.utils.JarClassLoader
jarResources
 
Fields inherited from class org.mbari.siam.utils.MultiClassLoader
monitorOn, sourceMonitorOn
 
Constructor Summary
DeviceServiceClassLoader(java.lang.String fileName)
          Create new class loader from specified jar file.
 
Method Summary
 DeviceService instantiateService(java.lang.String codebaseDirectory)
          Load service and related classes; return service instance.
 
Methods inherited from class org.mbari.siam.utils.JarClassLoader
loadClassBytes
 
Methods inherited from class org.mbari.siam.utils.MultiClassLoader
formatClassName, loadClass, loadClass, monitor, print, setClassNameReplacementChar
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeviceServiceClassLoader

public DeviceServiceClassLoader(java.lang.String fileName)
Create new class loader from specified jar file.

Method Detail

instantiateService

public DeviceService instantiateService(java.lang.String codebaseDirectory)
                                 throws java.lang.ClassNotFoundException,
                                        java.lang.InstantiationException,
                                        java.lang.IllegalAccessException,
                                        java.io.IOException,
                                        java.lang.Exception
Load service and related classes; return service instance.

Throws:
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.io.IOException
java.lang.Exception


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.