Java Code Examples for org.apache.cordova.PluginEntry#getUrlFilters()
The following examples show how to use
org.apache.cordova.PluginEntry#getUrlFilters() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PluginManager.java From L.TileLayer.Cordova with MIT License | 5 votes |
/** * Add a plugin class that implements a service to the service entry table. * This does not create the plugin object instance. * * @param entry The plugin entry */ public void addService(PluginEntry entry) { this.entryMap.put(entry.service, entry); List<String> urlFilters = entry.getUrlFilters(); if (urlFilters != null) { urlMap.put(entry.service, urlFilters); } if (entry.plugin != null) { entry.plugin.privateInitialize(ctx, app, app.getPreferences()); pluginMap.put(entry.service, entry.plugin); } }
Example 2
Source File: PluginManager.java From IoTgo_Android_App with MIT License | 5 votes |
/** * Add a plugin class that implements a service to the service entry table. * This does not create the plugin object instance. * * @param entry The plugin entry */ public void addService(PluginEntry entry) { this.entryMap.put(entry.service, entry); List<String> urlFilters = entry.getUrlFilters(); if (urlFilters != null) { urlMap.put(entry.service, urlFilters); } if (entry.plugin != null) { entry.plugin.privateInitialize(ctx, app, app.getPreferences()); pluginMap.put(entry.service, entry.plugin); } }
Example 3
Source File: PluginManager.java From bluemix-parking-meter with MIT License | 5 votes |
/** * Add a plugin class that implements a service to the service entry table. * This does not create the plugin object instance. * * @param entry The plugin entry */ public void addService(PluginEntry entry) { this.entryMap.put(entry.service, entry); List<String> urlFilters = entry.getUrlFilters(); if (urlFilters != null) { urlMap.put(entry.service, urlFilters); } if (entry.plugin != null) { entry.plugin.privateInitialize(ctx, app, app.getPreferences()); pluginMap.put(entry.service, entry.plugin); } }
Example 4
Source File: PluginManager.java From reader with MIT License | 5 votes |
/** * Add a plugin class that implements a service to the service entry table. * This does not create the plugin object instance. * * @param entry The plugin entry */ public void addService(PluginEntry entry) { this.entryMap.put(entry.service, entry); List<String> urlFilters = entry.getUrlFilters(); if (urlFilters != null) { urlMap.put(entry.service, urlFilters); } if (entry.plugin != null) { entry.plugin.privateInitialize(ctx, app, app.getPreferences()); pluginMap.put(entry.service, entry.plugin); } }
Example 5
Source File: PluginManager.java From reader with MIT License | 5 votes |
/** * Add a plugin class that implements a service to the service entry table. * This does not create the plugin object instance. * * @param entry The plugin entry */ public void addService(PluginEntry entry) { this.entryMap.put(entry.service, entry); List<String> urlFilters = entry.getUrlFilters(); if (urlFilters != null) { urlMap.put(entry.service, urlFilters); } if (entry.plugin != null) { entry.plugin.privateInitialize(ctx, app, app.getPreferences()); pluginMap.put(entry.service, entry.plugin); } }
Example 6
Source File: PluginManager.java From cordova-amazon-fireos with Apache License 2.0 | 5 votes |
/** * Add a plugin class that implements a service to the service entry table. * This does not create the plugin object instance. * * @param entry * The plugin entry */ public void addService(PluginEntry entry) { /* * When adding a new plugin we must reconstruct and sort the list of * PluginEntries (which reside in a LinkedHashMap) to maintain its * order. Although this may not be entirely desirable, it prevents us * from having to maintain a separate sorted data structure while still * keeping the benefits of storing the objects in a HashMap. * Furthermore, this function is currently only called once during the * initialization; and so by default is a total of only two overall * sorts (one for initial config.xml parse, and another for the * PluginManager service). * * Note: this method is not thread-safe, and is planned to be improved * in future commits (along with some other thread-unsafe areas) */ // create list from existing set of plugin entries, then add new item to list List<PluginEntry> pluginEntries = new ArrayList<PluginEntry>(entryMap.values()); pluginEntries.add(entry); //Update PluginMap as well if (entry.plugin != null) { entry.plugin.privateInitialize(ctx, app, app.getPreferences()); pluginMap.put(entry.service, entry.plugin); } // recreate final set entries in priority order this.addServices(pluginEntries); List<String> urlFilters = entry.getUrlFilters(); if (urlFilters != null) { urlMap.put(entry.service, urlFilters); } }
Example 7
Source File: PluginManager.java From crosswalk-cordova-android with Apache License 2.0 | 5 votes |
/** * Add a plugin class that implements a service to the service entry table. * This does not create the plugin object instance. * * @param entry The plugin entry */ public void addService(PluginEntry entry) { this.entryMap.put(entry.service, entry); List<String> urlFilters = entry.getUrlFilters(); if (urlFilters != null) { urlMap.put(entry.service, urlFilters); } if (entry.plugin != null) { entry.plugin.privateInitialize(ctx, app, app.getPreferences()); pluginMap.put(entry.service, entry.plugin); } }