neosim.util
Class JarLoader

java.lang.Object
  |
  +--neosim.util.JarLoader

public class JarLoader
extends java.lang.Object


Constructor Summary
JarLoader(java.lang.String jarName)
          Create a JarLoader to read a JAR and to process its contents.
 
Method Summary
 java.lang.ClassLoader getLoader()
          get the loader we are using
 JarInfo loadJar()
          Load the classes, resources, etc.
static void loadJarDoOnBean(java.lang.String jarFile, DoOnBean action)
          Load the JAR file, then apply an action to each bean found
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JarLoader

public JarLoader(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. Loading is started with loadIt()
Method Detail

getLoader

public java.lang.ClassLoader getLoader()
get the loader we are using

loadJar

public JarInfo loadJar()
                throws java.io.IOException
Load the classes, resources, etc.

loadJarDoOnBean

public static void loadJarDoOnBean(java.lang.String jarFile,
                                   DoOnBean action)
                            throws java.io.IOException
Load the JAR file, then apply an action to each bean found