[pal-cvs 2810] [554] added calculator for delivery method.

svnno****@sourc***** svnno****@sourc*****
2007年 9月 11日 (火) 22:26:30 JST


Revision: 554
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=554
Author:   shinsuke
Date:     2007-09-11 22:26:30 +0900 (Tue, 11 Sep 2007)

Log Message:
-----------
added calculator for delivery method.

Modified Paths:
--------------
    pompei/portlets/pompei-core/trunk/src/main/resources/app.dicon

Added Paths:
-----------
    pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/fee/
    pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/fee/DeliveryMethodCalculator.java
    pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/fee/impl/
    pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/fee/impl/DefaultDeliveryMethodCalculator.java
    pompei/portlets/pompei-core/trunk/src/main/resources/fee.dicon


-------------- next part --------------
Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/fee/DeliveryMethodCalculator.java
===================================================================
--- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/fee/DeliveryMethodCalculator.java	2007-09-11 13:24:45 UTC (rev 553)
+++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/fee/DeliveryMethodCalculator.java	2007-09-11 13:26:30 UTC (rev 554)
@@ -0,0 +1,13 @@
+package jp.sf.pal.pompei.fee;
+
+import java.io.Serializable;
+import java.math.BigDecimal;
+import java.util.List;
+
+import jp.sf.pal.pompei.exentity.AddressBook;
+import jp.sf.pal.pompei.exentity.CustomersBasket;
+
+public interface DeliveryMethodCalculator extends Serializable {
+    public BigDecimal calculate(List<CustomersBasket> list,
+            AddressBook deliveryAddressBook);
+}


Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/fee/DeliveryMethodCalculator.java
___________________________________________________________________
Name: svn:eol-style
   + native

Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/fee/impl/DefaultDeliveryMethodCalculator.java
===================================================================
--- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/fee/impl/DefaultDeliveryMethodCalculator.java	2007-09-11 13:24:45 UTC (rev 553)
+++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/fee/impl/DefaultDeliveryMethodCalculator.java	2007-09-11 13:26:30 UTC (rev 554)
@@ -0,0 +1,24 @@
+package jp.sf.pal.pompei.fee.impl;
+
+import java.math.BigDecimal;
+import java.util.List;
+
+import jp.sf.pal.pompei.exentity.AddressBook;
+import jp.sf.pal.pompei.exentity.CustomersBasket;
+import jp.sf.pal.pompei.fee.DeliveryMethodCalculator;
+
+public class DefaultDeliveryMethodCalculator implements
+        DeliveryMethodCalculator {
+
+    /**
+     * 
+     */
+    private static final long serialVersionUID = 4448477278188463956L;
+
+    public BigDecimal calculate(List<CustomersBasket> list,
+            AddressBook deliveryAddressBook) {
+        // TODO 自動生成されたメソッド・スタブ
+        return new BigDecimal(1000);
+    }
+
+}


Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/fee/impl/DefaultDeliveryMethodCalculator.java
___________________________________________________________________
Name: svn:eol-style
   + native

Modified: pompei/portlets/pompei-core/trunk/src/main/resources/app.dicon
===================================================================
--- pompei/portlets/pompei-core/trunk/src/main/resources/app.dicon	2007-09-11 13:24:45 UTC (rev 553)
+++ pompei/portlets/pompei-core/trunk/src/main/resources/app.dicon	2007-09-11 13:26:30 UTC (rev 554)
@@ -9,4 +9,5 @@
 	<include path="dao.dicon"/>
 	<include path="dxo.dicon"/>
 	<include path="dbflute.dicon"/>
+	<include path="fee.dicon"/>
 </components>

Added: pompei/portlets/pompei-core/trunk/src/main/resources/fee.dicon
===================================================================
--- pompei/portlets/pompei-core/trunk/src/main/resources/fee.dicon	2007-09-11 13:24:45 UTC (rev 553)
+++ pompei/portlets/pompei-core/trunk/src/main/resources/fee.dicon	2007-09-11 13:26:30 UTC (rev 554)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE components PUBLIC "-//SEASAR//DTD S2Container 2.4//EN" "http://www.seasar.org/dtd/components24.dtd">
+<components>
+  <component name="defaultDeliveryMethodCalculator" class="jp.sf.pal.pompei.fee.impl.DefaultDeliveryMethodCalculator"/>
+</components>


pal-cvs メーリングリストの案内