Mobile Tools for Java
Release 1.0

org.eclipse.mtj.core.importer.impl
Class JavaEmulatorDeviceImporter

java.lang.Object
  extended by org.eclipse.mtj.core.importer.impl.JavaEmulatorDeviceImporter
All Implemented Interfaces:
IDeviceImporter

public abstract class JavaEmulatorDeviceImporter
extends Object
implements IDeviceImporter

Provides common support operations for use in emulators that are launched as Java classes.


Field Summary
protected  Properties deviceProperties
           
 
Constructor Summary
JavaEmulatorDeviceImporter()
           
 
Method Summary
protected  Properties getDeviceProperties()
          Return the device definition properties.
protected abstract  URL getDevicePropertiesURL()
          Return the URL to access the device properties file.
protected  String getLaunchCommand()
          Return the launch command template.
protected  IPreverifier getPreverifier(File jarFile)
          Return the preverifier to use.
protected  boolean hasMainClassAttribute(File file, String classname)
          Return a boolean indicating whether the specified JAR file has a main class attribute of the specified class name.
protected  boolean isDebugServer()
          Return a boolean indicating whether this device acts as a debug server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.mtj.core.importer.IDeviceImporter
getMatchingDevices
 

Field Detail

deviceProperties

protected Properties deviceProperties
Constructor Detail

JavaEmulatorDeviceImporter

public JavaEmulatorDeviceImporter()
Method Detail

getDeviceProperties

protected Properties getDeviceProperties()
Return the device definition properties.

Returns:

getDevicePropertiesURL

protected abstract URL getDevicePropertiesURL()
Return the URL to access the device properties file.

Returns:

getLaunchCommand

protected String getLaunchCommand()
Return the launch command template.

Returns:

getPreverifier

protected IPreverifier getPreverifier(File jarFile)
Return the preverifier to use.

Parameters:
jarFile -
Returns:

hasMainClassAttribute

protected boolean hasMainClassAttribute(File file,
                                        String classname)
                                 throws IOException
Return a boolean indicating whether the specified JAR file has a main class attribute of the specified class name.

Parameters:
file -
classname -
Returns:
Throws:
IOException

isDebugServer

protected boolean isDebugServer()
Return a boolean indicating whether this device acts as a debug server.

Returns:

Mobile Tools for Java
Release 1.0