|
From: <pe...@us...> - 2003-10-27 23:49:01
|
Update of /cvsroot/neuclear/neuclear-bet/src/java/org/neuclear/bet
In directory sc8-pr-cvs1:/tmp/cvs-serv20480/src/java/org/neuclear/bet
Modified Files:
BetProcessor.java
Log Message:
Configuration should now work again. There current snapshots of NanoContainer are changing to rapidly and do not seem to
have a working XMLRegistration system. So I have created a snapshot of NanoContainer from before they started doing major changes.
If you use the Configuration class directly, the interface has changed to a getComponent which takes the class as well as a context name.
This context name is the name minus the (.xml) extension of the configuration file. eg context "neuclear-pay" loads the configuration
from "neuclear-pay.xml" using the class loader.
Working on getting PaymentReceiverTest working. To do that we need somesort of Signing Pico Component. I have taken the old
SignerStore interface and redesigned it a bit. Now you pass it the name that needs to sign it and a byte array. It then returns the
signed version. This allows all matters of different models and we dont need to worry about PrivateKeys floating around.
Index: BetProcessor.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-bet/src/java/org/neuclear/bet/BetProcessor.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** BetProcessor.java 25 Oct 2003 00:38:20 -0000 1.2
--- BetProcessor.java 27 Oct 2003 23:48:17 -0000 1.3
***************
*** 89,93 ****
public static BetProcessor getInstance() throws ConfigurationException {
! return (BetProcessor) Configuration.getContainer(BetProcessor.class).getComponentInstance(BetProcessor.class);
}
--- 89,93 ----
public static BetProcessor getInstance() throws ConfigurationException {
! return (BetProcessor) Configuration.getComponent(BetProcessor.class, "neuclear-bet");
}
|