|
From: <pe...@us...> - 2003-10-27 23:49:01
|
Update of /cvsroot/neuclear/neuclear-bet/src/java
In directory sc8-pr-cvs1:/tmp/cvs-serv20480/src/java
Added Files:
neuclear-bet.xml
Removed Files:
neuclear-conf.xml
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.
--- NEW FILE: neuclear-bet.xml ---
<components>
<component type="org.neuclear.sql.ConnectionSource" class="org.neuclear.sql.DefaultConnectionSource"/>
<component type="org.neuclear.ledger.Ledger" class="org.neuclear.ledger.implementations.SQLLedger">
<param type="java.lang.String">neu://superbux/reserve</param>
</component>
<component class="org.neuclear.pay.PaymentProcessor">
<param type="java.lang.String">SuperBux</param>
<param type="java.lang.String">neu://superbux/reserve</param>
</component>
<component type="org.neuclear.bet.totalizers.Totalizer" class="org.neuclear.bet.totalizers.dumb.DumbTotalizer">
<param type="java.lang.Double">0.25</param>
</component>
<component class="org.neuclear.bet.BetProcessor">
<param type="java.lang.String">FrogRacing</param>
<param type="java.lang.String">neu://frograce/parimutual</param>
</component>
</components>
--- neuclear-conf.xml DELETED ---
|