[Webfunds-devel] My WebFunds changes for today.

Ian Grigg iang@systemics.com
Sat, 27 May 2000 13:20:29 -0400


"Jeroen C. van Gelderen" wrote:

> - Introduced WalletContext so that Wallets no longer have a dependency on
>   WalletManager. WalletInterface needs to be replaced with an abstract
>   Wallet class in time.

One of the changes I introduced recently is that a Wallet can
add its own plugins.  In this way, a wallet can customise the
menus that pop up to include special features.  This allows us
to defer some of the wallet difference from the standard WebFunds
concept back to the Wallet itself, and takes a lot of pressure
off the standard payments interface (pay, deposit, etc).  All
this will become clearer when we get some really diverse wallets
in there.

To get this back again I added

   import webfunds.client.plugins.PluginManager;
   ....
      public PluginManager getPluginManager(WalletInterface wi);

to the WalletContext, and it seemed to work.  I'll leave it
at that for now, but the thought also occurs to me that a plugin
is a GUI/application level concept, and maybe I can therefore
get the PluginManager from the GUI (UInterface).

Not committed as yet...

The PluginManager is quite complex.  If called from a Wallet
context, it records the new plugins in an independant list for
that wallet, and when menus are requested, checks that list
first.

iang