info.rolandkrueger.roklib.plugins
Class PluginLoader<P extends AbstractPlugin>

java.lang.Object
  extended by info.rolandkrueger.roklib.plugins.PluginLoader<P>

public class PluginLoader<P extends AbstractPlugin>
extends Object

Author:
Roland Krueger

Field Summary
private  Set<String> mPropertiesToLoad
           
static String PLUGIN_MAINCLASS_PROPERTY
           
 
Constructor Summary
PluginLoader()
           
 
Method Summary
 void getPropertiesFromManifest(Collection<String> propertyNames)
           
 void getPropertyFromManifest(String propertyName)
           
 P loadPlugin(File fromFile)
           
 P loadPlugin(URL fromURL)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PLUGIN_MAINCLASS_PROPERTY

public static final String PLUGIN_MAINCLASS_PROPERTY
See Also:
Constant Field Values

mPropertiesToLoad

private Set<String> mPropertiesToLoad
Constructor Detail

PluginLoader

public PluginLoader()
Method Detail

getPropertyFromManifest

public void getPropertyFromManifest(String propertyName)

getPropertiesFromManifest

public void getPropertiesFromManifest(Collection<String> propertyNames)

loadPlugin

public P loadPlugin(File fromFile)
                                    throws IOException,
                                           InvalidManifestException,
                                           ClassNotFoundException,
                                           InstantiationException,
                                           IllegalAccessException
Throws:
IOException
InvalidManifestException
ClassNotFoundException
InstantiationException
IllegalAccessException

loadPlugin

public P loadPlugin(URL fromURL)
                                    throws IOException,
                                           InvalidManifestException,
                                           ClassNotFoundException,
                                           InstantiationException,
                                           IllegalAccessException
Throws:
IOException
InvalidManifestException
ClassNotFoundException
InstantiationException
IllegalAccessException


Copyright © 2007-2011. All Rights Reserved.