public class PluginRegistryImpl extends Object implements PluginRegistry
Modifier and Type | Field and Description |
---|---|
protected Map<String,Map<String,Method>> |
pluginsMethodsMap |
Constructor and Description |
---|
PluginRegistryImpl(EventLauncher launcher,
HybridWebView webView)
PluginRegistry constructor
|
Modifier and Type | Method and Description |
---|---|
void |
callOnDestroy()
Inform all plugins that WebApplication has been stopped and they should clean up their resources.
|
void |
callOnLaunchboxLoadedInvoked() |
void |
callOnPageLoaded()
Inform all plugins that WebApplication is loaded and JavaScript is injected
|
void |
callOnReload()
Inform all plugins that url has changed or has been reloaded
|
Plugin |
getPlugin(String pluginName)
Gets the plugin of the specified name.
|
Map<String,Method> |
getPluginMethods(String pluginName)
Returns map of methods associated with given plugin..
|
Collection<Plugin> |
getPlugins()
Returns collection with all plugins.
|
public PluginRegistryImpl(EventLauncher launcher, HybridWebView webView)
launcher
- can be sued by the plugins to fire an event on the javascript sidewebView
- Web View associated with this instancepublic Plugin getPlugin(String pluginName)
PluginRegistry
getPlugin
in interface PluginRegistry
pluginName
- name of the plugin to returnpublic Collection<Plugin> getPlugins()
public Map<String,Method> getPluginMethods(String pluginName)
pluginName
- the name of the pluginpublic void callOnPageLoaded()
public void callOnLaunchboxLoadedInvoked()
public void callOnReload()
public void callOnDestroy()