org.pz.platypus
Class PluginLoader

java.lang.Object
  extended by org.pz.platypus.PluginLoader

public class PluginLoader
extends java.lang.Object

Loads a plug-in

Author:
alb

Field Summary
private  GDD gdd
           
private  java.lang.String pluginLocation
          the actual name of the plugin JAR file on the disk
 
Constructor Summary
PluginLoader(java.lang.String pluginJar, GDD Gdd)
           
 
Method Summary
 java.net.URL createPluginUrl()
          Converts a plugin's JAR file name+address into a URL suitable for class loading
 void load(CommandLineArgs clArgs)
          Load the Start class from the plug-in JAR
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pluginLocation

private final java.lang.String pluginLocation
the actual name of the plugin JAR file on the disk


gdd

private GDD gdd
Constructor Detail

PluginLoader

public PluginLoader(java.lang.String pluginJar,
                    GDD Gdd)
Method Detail

load

public void load(CommandLineArgs clArgs)
Load the Start class from the plug-in JAR

Parameters:
clArgs - command line args

createPluginUrl

public java.net.URL createPluginUrl()
Converts a plugin's JAR file name+address into a URL suitable for class loading

Returns:
a valid URL, if all went well; else null;


Copyright © 2008-10 Pacific Data Works LLC