|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Class Summary | |
ClassAttributes | |
ClassSorter | Discovers the classes and beans inside of a Jar file. |
ClassWrapper | Wraps the class description up in a neat package |
DirectoryInspector | Discovers the classes and beans inside of a filesystem directory. |
Inspector | Discovers the classes in a URL. |
JarInspector | Discovers the classes and beans inside of a Jar file. |
PluginLoader | Discovers the classes and beans inside of URLs. |
PluginLoader.UrlRecurse | |
PropertyList | This class stores all the properties found. |
SingleClassInspector | Discovers the classes and beans inside of a URL. |
URLInspector | Discovers the classes inside of a URL. |
The jplugin package allows for easy use of "plugins" into your application.
A plugin is a collection of code which can be bound to at run-time, allowing for a more dynamic application. This is useful for allowing easy upgrades, and addition of new functionality.
PluginLoader pl = new PluginLoader( new URL( "file:"+baseDir ) );
pl.addClassSet( BasePluginSuperclass.class ); pl.addAttributeSet( "bean", "true" ); pl.addAttributeSet( "aPlugin" );
pl.findPlugins();This will load all manifest files ("*.MF"), class files ("*.class"), and Jar files ("*.jar" or "*.zip"). It will sort all class files by the sets specified.
ClassWrapper cw[] = pl.getPlugins( BasePluginSuperclass.class ); cw = pl.getPlugins( "bean" ); cw = pl.getPlugins( "aPlugin" );
|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |