ks.jarloader
Class JarLoaderHelper

java.lang.Object
  |
  +--ks.jarloader.JarLoaderHelper

public class JarLoaderHelper
extends java.lang.Object


Constructor Summary
JarLoaderHelper(java.lang.String path, java.lang.String jarName)
          Create a JarLoader to read a jar and to process its contents.
 
Method Summary
 JarInfo loadJar()
          Prepare the classes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JarLoaderHelper

public JarLoaderHelper(java.lang.String path,
                       java.lang.String jarName)
                throws java.io.FileNotFoundException
Create a JarLoader to read a jar and to process its contents. Classes and resources are loaded against a single common class loader instance so that things like "adaptor class instantiaton" can work.

Parameters:
path - the path to the jar file. e.g. "jar/storage/"
jarName - the name of the jar file to be loaded e.g. "classes.jar"
Method Detail

loadJar

public JarInfo loadJar()
Prepare the classes. This does not load the classes. It creates a JarInfo which the JarLoader can use to load classes.