|
From: <pe...@us...> - 2003-10-25 00:47:56
|
Update of /cvsroot/neuclear/neuclear-bet/src/java/org/neuclear/bet
In directory sc8-pr-cvs1:/tmp/cvs-serv7908/src/java/org/neuclear/bet
Modified Files:
BetProcessor.java
Log Message:
Fixed SmtpSender it now sends the messages.
Refactored CommandLineSigner. Now it simply signs files read from command line. However new class IdentityCreator
is subclassed and creates new Identities. You can subclass CommandLineSigner to create your own variants.
Several problems with configuration. Trying to solve at the moment. Updated PicoContainer to beta-2
Index: BetProcessor.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-bet/src/java/org/neuclear/bet/BetProcessor.java,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** BetProcessor.java 20 Sep 2003 23:19:21 -0000 1.1.1.1
--- BetProcessor.java 25 Oct 2003 00:38:20 -0000 1.2
***************
*** 25,29 ****
* Instantiates the BetProcessor with the required PaymentProcessor to use for
* handling payments.
! * @param pay
*/
public BetProcessor(Totalizer tote, PaymentProcessor pay, String title, String id) {
--- 25,30 ----
* Instantiates the BetProcessor with the required PaymentProcessor to use for
* handling payments.
! *
! * @param pay
*/
public BetProcessor(Totalizer tote, PaymentProcessor pay, String title, String id) {
***************
*** 56,59 ****
--- 57,61 ----
/**
* Process the Bet specified in the BetRequest and returns a Receipt
+ *
* @param req Valid BetRequest
* @return BetReceipt
***************
*** 87,91 ****
public static BetProcessor getInstance() throws ConfigurationException {
! return (BetProcessor) Configuration.getContainer().getComponent(BetProcessor.class);
}
--- 89,93 ----
public static BetProcessor getInstance() throws ConfigurationException {
! return (BetProcessor) Configuration.getContainer(BetProcessor.class).getComponentInstance(BetProcessor.class);
}
***************
*** 104,108 ****
/**
* Notify listener that the specified outcome won.
! * @param winSrc
*/
public void win(EventOutcome winSrc) throws LowlevelLedgerException {
--- 106,111 ----
/**
* Notify listener that the specified outcome won.
! *
! * @param winSrc
*/
public void win(EventOutcome winSrc) throws LowlevelLedgerException {
***************
*** 162,166 ****
/**
* Notify listener that the specified outcome has been cancelled from the event
! * @param outcomeSrc
*/
public void scratch(EventOutcome outcomeSrc) throws LowlevelLedgerException {
--- 165,170 ----
/**
* Notify listener that the specified outcome has been cancelled from the event
! *
! * @param outcomeSrc
*/
public void scratch(EventOutcome outcomeSrc) throws LowlevelLedgerException {
***************
*** 180,184 ****
/**
* Notify listener that the event has been cancelled.
! * @param event
*/
public void cancelEvent(BettingEvent event) throws LowlevelLedgerException {
--- 184,189 ----
/**
* Notify listener that the event has been cancelled.
! *
! * @param event
*/
public void cancelEvent(BettingEvent event) throws LowlevelLedgerException {
|