org.mbari.siam.utils
Class DeviceServiceLoader

java.lang.Object
  extended by org.mbari.siam.utils.DeviceServiceLoader

public class DeviceServiceLoader
extends java.lang.Object

Instantiate, initialize, and run a device service. The service bytecode, any related classes, and properties file are contained within a standard SIAM instrument jar file.

Author:
oreilly

Field Summary
protected static org.apache.log4j.Logger _log4j
          Log4j logger
 
Constructor Summary
DeviceServiceLoader()
           
 
Method Summary
 DeviceService getService()
          Return reference to DeviceService
 java.lang.String run(java.lang.String jarFileName, java.lang.String portName, java.lang.String codebaseDirectory, Parent parent, java.lang.String serviceURL)
          Load and run the device service, returning its URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_log4j

protected static org.apache.log4j.Logger _log4j
Log4j logger

Constructor Detail

DeviceServiceLoader

public DeviceServiceLoader()
Method Detail

run

public java.lang.String run(java.lang.String jarFileName,
                            java.lang.String portName,
                            java.lang.String codebaseDirectory,
                            Parent parent,
                            java.lang.String serviceURL)
                     throws java.lang.Exception
Load and run the device service, returning its URL.

Throws:
java.lang.Exception

getService

public DeviceService getService()
Return reference to DeviceService



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.