Add new first argument to PlugletFactory.initialize(): the string that

is the path to the jar from which the pluglet is loaded.

SECTION: Changes

M classes/org/mozilla/pluglet/PlugletFactory.java
M classes/org/mozilla/pluglet/PlugletFactoryAdaptor.java

- Add new first argument to PlugletFactory.initialize(): the string that
  is the path to the jar from which the pluglet is loaded.

M examples/MediaPlayer/JMPlayer.java
M test/test.java

- Account for new first argument

M src/PlugletFactory.cpp

- new JNI signature for initialize.


git-svn-id: svn://10.0.0.236/trunk@215304 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
edburns%acm.org
2006-11-15 01:11:42 +00:00
parent 7b06962b2a
commit 1879d39cea
6 changed files with 12 additions and 8 deletions

View File

@@ -42,8 +42,9 @@ public class test implements PlugletFactory {
* Initializes the pluglet and will be called before any new instances are
* created.
*/
public void initialize(PlugletManager manager) {
org.mozilla.util.DebugPluglet.print("--test.initialize\n");
public void initialize(String plugletPath, PlugletManager manager) {
org.mozilla.util.DebugPluglet.print("--test.initialize(" +
plugletPath + ")\n");
}
/**
* Called when the browser is done with the pluglet factory, or when