DCT Lightfoot v3 API specification

com.dctl.j2me.system
Class DynamicClassLoader

java.lang.Object
  |
  +--com.dctl.j2me.system.ClassLoader
        |
        +--com.dctl.j2me.system.DynamicClassLoader
Direct Known Subclasses:
HttpClassLoader, JarFileClassLoader

public abstract class DynamicClassLoader
extends ClassLoader

Base class for all dynamic class loaders


Field Summary
 
Fields inherited from class com.dctl.j2me.system.ClassLoader
defaultClassLoader
 
Constructor Summary
DynamicClassLoader()
           
 
Method Summary
protected abstract  byte[] getClassFileData(java.lang.String className)
          Get the data for the class file
 Class loadClass(java.lang.String name)
          Load the class file.
 
Methods inherited from class com.dctl.j2me.system.ClassLoader
loadResource, setDynamicClassLoader
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicClassLoader

public DynamicClassLoader()
Method Detail

getClassFileData

protected abstract byte[] getClassFileData(java.lang.String className)
                                    throws ClassNotFoundException
Get the data for the class file

Parameters:
className - The name of the class
Returns:
the byte array containing data for the class
Throws:
ClassNotFoundException - If the class cannot be found

loadClass

public Class loadClass(java.lang.String name)
                throws ClassNotFoundException
Load the class file.

Overrides:
loadClass in class ClassLoader
Parameters:
name - The name of the class to load
Returns:
the class
Throws:
ClassNotFoundException - if the class could not be loaded from the source

DCT Lightfoot v3 API specification

DCT Lightfoot v3 API specification