|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PluginCache<T extends Plugin>
The PluginCache is responsible of caching all plugins loaded and add / modify them at runtime. Thus, it is possible to add, remove or replace some plugins.
| Method Summary | |
|---|---|
void |
clear()
Clear the plugin cache, forcing a reload at next getPlugins() call |
boolean |
contains(java.lang.String pluginName)
|
java.util.Map<java.lang.String,PluginBinding<T>> |
getBindings()
Load the plugins if not done and returns an unmodifiable map of plugins sorted by their names |
void |
registerPlugin(java.lang.String name,
T plugin)
Install a plugin at runtime in the current cache, overwriting existing one. |
void |
registerPlugins(java.util.Map<java.lang.String,T> plugins)
Install some plugins at runtime in the current cache, overwriting existing ones. |
void |
removePlugins(java.lang.String... pluginNames)
Remove some plugins from the current cache. |
| Method Detail |
|---|
boolean contains(java.lang.String pluginName)
java.util.Map<java.lang.String,PluginBinding<T>> getBindings()
void clear()
void registerPlugin(java.lang.String name,
T plugin)
name - The name of the pluginplugin - The plugin instancevoid registerPlugins(java.util.Map<java.lang.String,T> plugins)
plugins - A map of plugins to registervoid removePlugins(java.lang.String... pluginNames)
pluginNames - the plugins to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||