From d1e52cca249718e66eaf3dd26f962cdd099b17b7 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Fri, 4 Sep 2015 19:51:56 +0200 Subject: [PATCH] =?utf8?q?Cleanup=20(no=20longer=20used=20methods=3F=20may?= =?utf8?q?be=20it=20will=20come=20back,=20who=20knows=20...)=20Signed-off-?= =?utf8?q?by:Roland=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../application/PizzaApplication.java | 13 ------------ .../application/PizzaServiceApplication.java | 21 ------------------- .../beans/controller/PizzaBean.java | 9 -------- .../beans/controller/PizzaServiceBean.java | 11 ---------- 4 files changed, 54 deletions(-) diff --git a/src/java/org/mxchange/pizzaapplication/application/PizzaApplication.java b/src/java/org/mxchange/pizzaapplication/application/PizzaApplication.java index 0b2f79ef..11495d59 100644 --- a/src/java/org/mxchange/pizzaapplication/application/PizzaApplication.java +++ b/src/java/org/mxchange/pizzaapplication/application/PizzaApplication.java @@ -203,17 +203,4 @@ public interface PizzaApplication extends Application { */ @Deprecated public void doAdminHandleCategoryForms () throws IOException, SQLException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, CategoryTitleAlreadyUsedException; - - /** - * Some "getter" for a Product instance from given item - * - * @param item Item instance - * @return A Product instance - * @throws java.io.IOException If an IO error occurs - * @throws java.sql.SQLException If an SQL error occurs - * @throws java.lang.NoSuchMethodException If a method was not found - * @throws java.lang.IllegalAccessException If the method cannot be accessed publicly - * @throws java.lang.reflect.InvocationTargetException If something else happens? - */ - public Product getProduct (final AddableBasketItem item) throws IOException, SQLException, NoSuchMethodException, IllegalAccessException, InvocationTargetException; } diff --git a/src/java/org/mxchange/pizzaapplication/application/PizzaServiceApplication.java b/src/java/org/mxchange/pizzaapplication/application/PizzaServiceApplication.java index cd83bce7..f96e26e6 100644 --- a/src/java/org/mxchange/pizzaapplication/application/PizzaServiceApplication.java +++ b/src/java/org/mxchange/pizzaapplication/application/PizzaServiceApplication.java @@ -409,25 +409,4 @@ public class PizzaServiceApplication extends BasePizzaServiceSystem implements P // Return it return isUsed; } - - @Override - public Product getProduct (final AddableBasketItem item) throws IOException, SQLException, NoSuchMethodException, IllegalAccessException, InvocationTargetException { - // Trace message - this.getLogger().trace(MessageFormat.format("item={0} - CALLED!", item)); //NOI18N - - // item should not be null - if (null == item) { - // Abort here - throw new NullPointerException("item is null"); //NOI18N - } - - // Init product instance - Product product = this.productFrontend.getProduct(item); - - // Trace message - this.getLogger().trace(MessageFormat.format("product={0} - EXIT!", product)); //NOI18N //NOI18N - - // Return it - return product; - } } diff --git a/src/java/org/mxchange/pizzaapplication/beans/controller/PizzaBean.java b/src/java/org/mxchange/pizzaapplication/beans/controller/PizzaBean.java index 8ad0547f..02097932 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/controller/PizzaBean.java +++ b/src/java/org/mxchange/pizzaapplication/beans/controller/PizzaBean.java @@ -24,7 +24,6 @@ import org.mxchange.jshop.beans.FrameworkBean; import org.mxchange.jshop.category.Category; import org.mxchange.jshop.exceptions.CategoryTitleAlreadyUsedException; import org.mxchange.jshop.exceptions.ProductTitleAlreadyUsedException; -import org.mxchange.jshop.item.AddableBasketItem; import org.mxchange.jshop.product.Product; /** @@ -155,12 +154,4 @@ public interface PizzaBean extends FrameworkBean { */ @Deprecated public void doAdminHandleCategoryForms () throws RemoteException; - - /** - * Some "getter" for a product from given item - * @param item Item instance - * @return A Product instance - * @throws java.rmi.RemoteException If something bad happens - */ - public Product getProduct (final AddableBasketItem item) throws RemoteException; } diff --git a/src/java/org/mxchange/pizzaapplication/beans/controller/PizzaServiceBean.java b/src/java/org/mxchange/pizzaapplication/beans/controller/PizzaServiceBean.java index 66cfb17e..a54f1e1c 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/controller/PizzaServiceBean.java +++ b/src/java/org/mxchange/pizzaapplication/beans/controller/PizzaServiceBean.java @@ -202,17 +202,6 @@ public class PizzaServiceBean extends BaseFrameworkBean implements PizzaBean { throw new UnsupportedOperationException("Deprecated method called"); } - @Override - public Product getProduct (final AddableBasketItem item) throws RemoteException { - try { - // Deligate to application - return this.app.getProduct(item); - } catch (IOException | SQLException | NoSuchMethodException | IllegalAccessException | InvocationTargetException ex) { - // Continue to throw - throw new RemoteException("getProductI() failed.", ex); - } - } - @Override @Deprecated public String generateLinkForParent (final Category category) { -- 2.39.5