oscar.Util.PluginManager

This class is used to manage plugins

Summary
oscar.Util.PluginManagerThis class is used to manage plugins
Properties
registeredPluginsThis is a mapping of registered plugins
Functions
registerThis is the method to register a plugin
getPluginForReturns a plugin for the defined protocol string

Properties

registeredPlugins

This is a mapping of registered plugins

Functions

register

register : function(type,
pluginClass)

This is the method to register a plugin

Parameter: typeThe type of plugin. pluginClass: The class of the plugin.  Ex: .register(oscar.Util.Plugin.Download.WCSService.prototype.pluginType, oscar.Util.Plugin.Download.WCSService);

getPluginFor

getPluginFor : function(pluginType)

Returns a plugin for the defined protocol string

Parameter

getPluginTypeThe type of plugin
register : function(type,
pluginClass)
This is the method to register a plugin
getPluginFor : function(pluginType)
Returns a plugin for the defined protocol string