@Deprecate methods of PluginManager that were never meant to be public
Project: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/commit/9d0cc2ef Tree: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/tree/9d0cc2ef Diff: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/diff/9d0cc2ef Branch: refs/heads/master Commit: 9d0cc2ef92c6e886649a15ed63816197939c6903 Parents: 38586b5 Author: Andrew Grieve <[email protected]> Authored: Mon Jul 14 14:10:19 2014 -0400 Committer: Archana Naik <[email protected]> Committed: Wed Jul 30 18:09:37 2014 -0700 ---------------------------------------------------------------------- framework/src/org/apache/cordova/PluginManager.java | 9 +++++++++ 1 file changed, 9 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/blob/9d0cc2ef/framework/src/org/apache/cordova/PluginManager.java ---------------------------------------------------------------------- diff --git a/framework/src/org/apache/cordova/PluginManager.java b/framework/src/org/apache/cordova/PluginManager.java index 04ac200..400426c 100755 --- a/framework/src/org/apache/cordova/PluginManager.java +++ b/framework/src/org/apache/cordova/PluginManager.java @@ -86,6 +86,7 @@ public class PluginManager { /** * Init when loading a new HTML page into webview. */ + @Deprecated // Should not be exposed as public. public void init() { LOG.d(TAG, "init()"); this.onPause(false); @@ -101,6 +102,7 @@ public class PluginManager { /** * Delete all plugin objects. */ + @Deprecated // Should not be exposed as public. public void clearPluginObjects() { pluginMap.clear(); } @@ -108,6 +110,7 @@ public class PluginManager { /** * Create plugins objects that have onload set. */ + @Deprecated // Should not be exposed as public. public void startupPlugins() { for (PluginEntry entry : entryMap.values()) { if (entry.onload) { @@ -274,6 +277,7 @@ public class PluginManager { * * @param multitasking Flag indicating if multitasking is turned on for app */ + @Deprecated // Should not be public public void onPause(boolean multitasking) { for (CordovaPlugin plugin : this.pluginMap.values()) { plugin.onPause(multitasking); @@ -285,6 +289,7 @@ public class PluginManager { * * @param multitasking Flag indicating if multitasking is turned on for app */ + @Deprecated // Should not be public public void onResume(boolean multitasking) { for (CordovaPlugin plugin : this.pluginMap.values()) { plugin.onResume(multitasking); @@ -294,6 +299,7 @@ public class PluginManager { /** * The final call you receive before your activity is destroyed. */ + @Deprecated // Should not be public public void onDestroy() { for (CordovaPlugin plugin : this.pluginMap.values()) { plugin.onDestroy(); @@ -324,6 +330,7 @@ public class PluginManager { /** * Called when the activity receives a new intent. */ + @Deprecated // Should not be public public void onNewIntent(Intent intent) { for (CordovaPlugin plugin : this.pluginMap.values()) { plugin.onNewIntent(intent); @@ -336,6 +343,7 @@ public class PluginManager { * @param url The URL that is being changed to. * @return Return false to allow the URL to load, return true to prevent the URL from loading. */ + @Deprecated // Should not be public public boolean onOverrideUrlLoading(String url) { // Deprecated way to intercept URLs. (process <url-filter> tags). // Instead, plugins should not include <url-filter> and instead ensure @@ -362,6 +370,7 @@ public class PluginManager { /** * Called when the app navigates or refreshes. */ + @Deprecated // Should not be public public void onReset() { for (CordovaPlugin plugin : this.pluginMap.values()) { plugin.onReset();
