From 1b4ef6376e4eba6290647992f403d5e9ecf53140 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Fri, 4 Sep 2015 19:34:13 +0200 Subject: [PATCH] =?utf8?q?Don't=20instance=20a=20remote=20bean,=20better?= =?utf8?q?=20look=20it=20up=20and=20call=20it's=20business=20methods=20Sig?= =?utf8?q?ned-off-by:Roland=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../tags/basket/BasketTag.java | 16 ++-------- .../tags/basket/MiniBasketTag.java | 30 ------------------- 2 files changed, 3 insertions(+), 43 deletions(-) diff --git a/PizzaService-ejb/src/java/org/mxchange/pizzaapplication/tags/basket/BasketTag.java b/PizzaService-ejb/src/java/org/mxchange/pizzaapplication/tags/basket/BasketTag.java index b6b062b..5e8ae1b 100644 --- a/PizzaService-ejb/src/java/org/mxchange/pizzaapplication/tags/basket/BasketTag.java +++ b/PizzaService-ejb/src/java/org/mxchange/pizzaapplication/tags/basket/BasketTag.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2015 quix0r + * Copyright (C) 2015 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 @@ -17,21 +17,11 @@ package org.mxchange.pizzaapplication.tags.basket; import javax.servlet.jsp.tagext.BodyTag; -import org.mxchange.jshop.beans.remote.basket.BasketSessionBeanRemote; /** + * An interface for a (mini) basket tag. * - * @author quix0r + * @author Roland Haeder */ public interface BasketTag extends BodyTag { - - /** - * @return the basket - */ - public BasketSessionBeanRemote getBasket (); - - /** - * @param basket the basket to set - */ - public void setBasket (final BasketSessionBeanRemote basket); } diff --git a/PizzaService-ejb/src/java/org/mxchange/pizzaapplication/tags/basket/MiniBasketTag.java b/PizzaService-ejb/src/java/org/mxchange/pizzaapplication/tags/basket/MiniBasketTag.java index f1d76c3..61b53fe 100644 --- a/PizzaService-ejb/src/java/org/mxchange/pizzaapplication/tags/basket/MiniBasketTag.java +++ b/PizzaService-ejb/src/java/org/mxchange/pizzaapplication/tags/basket/MiniBasketTag.java @@ -23,7 +23,6 @@ import javax.servlet.jsp.JspException; import javax.servlet.jsp.tagext.BodyTagSupport; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; -import org.mxchange.jshop.beans.remote.basket.BasketSessionBeanRemote; import org.mxchange.jshop.model.item.AddableBasketItem; import org.mxchange.jshop.model.product.Product; import org.mxchange.pizzaapplication.beans.controller.PizzaBean; @@ -39,11 +38,6 @@ public class MiniBasketTag extends BodyTagSupport implements BasketTag { */ private static final long serialVersionUID = 457415727452384L; - /** - * Basket instance - */ - private BasketSessionBeanRemote basket; - /** * Logger instance */ @@ -153,28 +147,4 @@ public class MiniBasketTag extends BodyTagSupport implements BasketTag { // Don't process any body return SKIP_BODY; } - - /** - * @return the basket - */ - @Override - public BasketSessionBeanRemote getBasket () { - // Trace message - //* NOISY-DEBUG: */ this.LOG.trace("basket=" + this.basket + " - EXIT!"); - - // Return it - return this.basket; - } - - /** - * @param basket the basket to set - */ - @Override - public void setBasket (final BasketSessionBeanRemote basket) { - // Trace message - //* NOISY-DEBUG: */ this.LOG.trace("basked=" + basket + " - CALLED!"); - - // Set it here - this.basket = basket; - } } -- 2.39.5