[Webfunds-commits] java/webfunds/client/plugins PluginManager.java
Ian Grigg
iang@cypherpunks.ai
Mon, 25 Sep 2000 23:19:08 -0400 (AST)
iang 00/09/25 23:19:08
Modified: webfunds/client/plugins PluginManager.java
Log:
name change to match others (minor)
Revision Changes Path
1.17 +11 -3 java/webfunds/client/plugins/PluginManager.java
Index: PluginManager.java
===================================================================
RCS file: /home/webfunds/cvsroot/java/webfunds/client/plugins/PluginManager.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- PluginManager.java 2000/09/26 03:11:46 1.16
+++ PluginManager.java 2000/09/26 03:19:07 1.17
@@ -1,5 +1,5 @@
/*
- * $Id: PluginManager.java,v 1.16 2000/09/26 03:11:46 iang Exp $
+ * $Id: PluginManager.java,v 1.17 2000/09/26 03:19:07 iang Exp $
*
* Copyright (c) 1995-2000 Systemics Inc on behalf of
* the WebFunds Development Team. All Rights Reserved.
@@ -332,13 +332,17 @@
* Contract Plugins, on popup menu for each contract level.
*/
public void getInstance(String classname,
- WalletInterface wi, AccountInfo acct,
+ WalletInterface wi, AccountInfo info,
ItemId contract)
{
+ if ((classname==null) || (wi==null) || (info==null) || (contract==null))
+ throw new IllegalArgumentException("null? " +
+ classname + " / " + wi + " / " + info + " / " + contract);
+
try
{
Plugin plug = getInstance(wi, classname);
- plug.init(wi, acct, contract);
+ plug.init(wi, info, contract);
plug.start();
}
catch (Exception e)
@@ -356,6 +360,10 @@
public void getInstance(String classname,
WalletInterface wi, AccountInfo info)
{
+ if (classname == null || wi == null || info == null)
+ throw new IllegalArgumentException("null? " +
+ classname + " / " + wi + " / " + info);
+
try
{
Plugin plug = getInstance(wi, classname);