From: Roland Haeder Date: Sat, 9 Apr 2016 11:08:55 +0000 (+0200) Subject: Some rewrites: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0fa259bf4a2a6db4f504f960daba7f038a57962b;p=jproduct-lib.git Some rewrites: - generic customer-related classes/interfaces has been moved to jcustomer-core. - reordered imports (sorted) - added jcustomer-core (new project) --- diff --git a/lib/jcustomer-core.jar b/lib/jcustomer-core.jar new file mode 100644 index 0000000..255e0d3 Binary files /dev/null and b/lib/jcustomer-core.jar differ diff --git a/lib/jshop-core.jar b/lib/jshop-core.jar index b11c3b0..95ea58c 100644 Binary files a/lib/jshop-core.jar and b/lib/jshop-core.jar differ diff --git a/nbproject/project.properties b/nbproject/project.properties index dedc590..3dfc753 100644 --- a/nbproject/project.properties +++ b/nbproject/project.properties @@ -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 diff --git a/src/org/mxchange/jshopcore/model/basket/BasketSessionBeanRemote.java b/src/org/mxchange/jshopcore/model/basket/BasketSessionBeanRemote.java index b5faad5..a9bebfa 100644 --- a/src/org/mxchange/jshopcore/model/basket/BasketSessionBeanRemote.java +++ b/src/org/mxchange/jshopcore/model/basket/BasketSessionBeanRemote.java @@ -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 index 3a63e60..0000000 --- a/src/org/mxchange/jshopcore/model/customer/CustomerSessionBeanRemote.java +++ /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 . - */ -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 - *

- * @author Roland Haeder - */ -@Remote -public interface CustomerSessionBeanRemote extends Serializable { - - /** - * Fills given customer instance with all available data - *

- * @param customer Initial Customer instance - *

- * @return Prepared Customer instance - */ - Customer fillCustomerData (final Customer customer); - - /** - * Checks if the the given customer instance is already registered - *

- * @param customer Customer instance - *

- * @return Whether the customer is already registered - */ - boolean isReqistered (final Customer customer); - - /** - * Registers the customer and creates a customer number after succesful - * persisting. - *

- * @param customer Initial customer instance - *

- * @return Prepared Customer instance - *

- * @throws - * org.mxchange.jshopcore.exceptions.CustomerAlreadyRegisteredException If - * the customer is already registered. - */ - Customer registerCustomer (final Customer customer) throws CustomerAlreadyRegisteredException; -} diff --git a/src/org/mxchange/jshopcore/model/receipt/ReceiptBeanRemote.java b/src/org/mxchange/jshopcore/model/receipt/ReceiptBeanRemote.java index 3e21191..1a4d12d 100644 --- a/src/org/mxchange/jshopcore/model/receipt/ReceiptBeanRemote.java +++ b/src/org/mxchange/jshopcore/model/receipt/ReceiptBeanRemote.java @@ -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