]> git.mxchange.org Git - jproduct-lib.git/commitdiff
Some rewrites:
authorRoland Haeder <roland@mxchange.org>
Sat, 9 Apr 2016 11:08:55 +0000 (13:08 +0200)
committerRoland Haeder <roland@mxchange.org>
Sat, 9 Apr 2016 11:08:55 +0000 (13:08 +0200)
- generic customer-related classes/interfaces has been moved to jcustomer-core.
- reordered imports (sorted)
- added jcustomer-core (new project)

lib/jcustomer-core.jar [new file with mode: 0644]
lib/jshop-core.jar
nbproject/project.properties
src/org/mxchange/jshopcore/model/basket/BasketSessionBeanRemote.java
src/org/mxchange/jshopcore/model/customer/CustomerSessionBeanRemote.java [deleted file]
src/org/mxchange/jshopcore/model/receipt/ReceiptBeanRemote.java

diff --git a/lib/jcustomer-core.jar b/lib/jcustomer-core.jar
new file mode 100644 (file)
index 0000000..255e0d3
Binary files /dev/null and b/lib/jcustomer-core.jar differ
index b11c3b0264404e7c9fe625be16e26daa900f6811..95ea58c91a554ded2373dbaee9bca0e44b98c639 100644 (file)
Binary files a/lib/jshop-core.jar and b/lib/jshop-core.jar differ
index dedc5903ef0692a382bbd566eb2653f3faad74f1..3dfc75342f4d2dc3303da3bd8bef6a13667a843d 100644 (file)
@@ -32,6 +32,7 @@ endorsed.classpath=
 excludes=
 file.reference.jcore.jar=lib/jcore.jar
 file.reference.jcoreee.jar=lib/jcoreee.jar
+file.reference.jcustomer-core.jar=lib/jcustomer-core.jar
 file.reference.jshop-core.jar=lib/jshop-core.jar
 includes=**
 jar.archive.disabled=${jnlp.enabled}
@@ -40,11 +41,13 @@ jar.index=${jnlp.enabled}
 javac.classpath=\
     ${file.reference.jcore.jar}:\
     ${file.reference.jcoreee.jar}:\
+    ${file.reference.jcustomer-core.jar}:\
     ${file.reference.jshop-core.jar}:\
     ${libs.javaee-api-7.0.classpath}
 # Space-separated list of extra javac options
 javac.compilerargs=
 javac.deprecation=true
+javac.external.vm=false
 javac.processorpath=\
     ${javac.classpath}
 javac.source=1.7
@@ -95,6 +98,7 @@ run.test.classpath=\
 source.encoding=UTF-8
 source.reference.jcore.jar=../jcore/src/
 source.reference.jcoreee.jar=../jcoreee/src/
+source.reference.jcustomer-core.jar=../jcustomer-core/src/
 source.reference.jshop-core.jar=../jshop-core/src/
 src.dir=src
 test.src.dir=test
index b5faad5ec069725178b7df4f63273e93c9496d58..a9bebfa253b927163193a372286acd9b2d28e8cd 100644 (file)
@@ -19,7 +19,7 @@ package org.mxchange.jshopcore.model.basket;
 import java.io.Serializable;
 import java.util.List;
 import javax.ejb.Remote;
-import org.mxchange.jshopcore.model.customer.Customer;
+import org.mxchange.jcustomercore.model.customer.Customer;
 
 /**
  * An interface for a basket bean
diff --git a/src/org/mxchange/jshopcore/model/customer/CustomerSessionBeanRemote.java b/src/org/mxchange/jshopcore/model/customer/CustomerSessionBeanRemote.java
deleted file mode 100644 (file)
index 3a63e60..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- * Copyright (C) 2016 Roland Haeder
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- */
-package org.mxchange.jshopcore.model.customer;
-
-import java.io.Serializable;
-import javax.ejb.Remote;
-import org.mxchange.jshopcore.exceptions.CustomerAlreadyRegisteredException;
-
-/**
- * An interface for customer beans
- * <p>
- * @author Roland Haeder<roland@mxchange.org>
- */
-@Remote
-public interface CustomerSessionBeanRemote extends Serializable {
-
-       /**
-        * Fills given customer instance with all available data
-        * <p>
-        * @param customer Initial Customer instance
-        * <p>
-        * @return Prepared Customer instance
-        */
-       Customer fillCustomerData (final Customer customer);
-
-       /**
-        * Checks if the the given customer instance is already registered
-        * <p>
-        * @param customer Customer instance
-        * <p>
-        * @return Whether the customer is already registered
-        */
-       boolean isReqistered (final Customer customer);
-
-       /**
-        * Registers the customer and creates a customer number after succesful
-        * persisting.
-        * <p>
-        * @param customer Initial customer instance
-        * <p>
-        * @return Prepared Customer instance
-        * <p>
-        * @throws
-        * org.mxchange.jshopcore.exceptions.CustomerAlreadyRegisteredException If
-        * the customer is already registered.
-        */
-       Customer registerCustomer (final Customer customer) throws CustomerAlreadyRegisteredException;
-}
index 3e2119137e33f653c0150d6daa53ce0d939fad60..1a4d12de282363e215e81c2e87cf8502579ab442 100644 (file)
@@ -18,7 +18,7 @@ package org.mxchange.jshopcore.model.receipt;
 
 import java.io.Serializable;
 import javax.ejb.Remote;
-import org.mxchange.jshopcore.model.customer.Customer;
+import org.mxchange.jcustomercore.model.customer.Customer;
 
 /**
  * A remote interface for official recipt creation