org.mbari.siam.distributed.platform
Class PortServiceClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by java.security.SecureClassLoader
          extended by java.net.URLClassLoader
              extended by org.mbari.siam.distributed.platform.PortServiceClassLoader

public class PortServiceClassLoader
extends java.net.URLClassLoader

Load PortService class from jar file.

Author:
Mike Risi

Constructor Summary
PortServiceClassLoader(java.io.File file)
           
PortServiceClassLoader(java.net.URL url)
           
 
Method Summary
 java.lang.String getEntryClassName()
          Get name of PortService implementation.
 PortService startService(java.lang.String name, gnu.io.CommPort port)
          Invoke start() method of specified PortService object.
 
Methods inherited from class java.net.URLClassLoader
addURL, definePackage, findClass, findResource, findResources, getPermissions, getURLs, newInstance, newInstance
 
Methods inherited from class java.security.SecureClassLoader
defineClass, defineClass
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, 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

PortServiceClassLoader

public PortServiceClassLoader(java.net.URL url)

PortServiceClassLoader

public PortServiceClassLoader(java.io.File file)
                       throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException
Method Detail

getEntryClassName

public java.lang.String getEntryClassName()
                                   throws java.io.IOException
Get name of PortService implementation.

Throws:
java.io.IOException

startService

public PortService startService(java.lang.String name,
                                gnu.io.CommPort port)
                         throws java.lang.ClassNotFoundException,
                                java.lang.InstantiationException,
                                java.lang.IllegalAccessException
Invoke start() method of specified PortService object.

Throws:
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException


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.