|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PluginLoader<T extends Plugin>
The PluginLoader is responsible of loading all plugins found. Default implementation is from the filesystem, but is could be from other locations
| Method Summary | |
|---|---|
java.util.Set<PluginBinding<T>> |
loadPlugins()
Load (and reload for subsequent calls) all the available plugins |
void |
setExclusions(java.util.Collection<java.lang.String> exclusions)
Set which plugin names should not be loaded |
void |
setExclusions(java.lang.String... exclusions)
Set which plugin names should not be loaded |
void |
setLoader(java.lang.ClassLoader loader)
Set which classloader should be used to instanciate plugin classes. |
| Method Detail |
|---|
java.util.Set<PluginBinding<T>> loadPlugins()
DuplicatePluginException - If a plugin has been found twice
PluginCreationException - If a plugin cannot be created (i.e. bad plugin class)
PluginIOException - If errors occured while IO operationsvoid setExclusions(java.lang.String... exclusions)
exclusions - An array of plugin namesvoid setExclusions(java.util.Collection<java.lang.String> exclusions)
exclusions - A collection of plugin namesvoid setLoader(java.lang.ClassLoader loader)
loader - ClassLoader to use
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||