From: Roland Haeder Date: Fri, 4 Sep 2015 17:34:13 +0000 (+0200) Subject: Don't instance a remote bean, better look it up and call it's business methods X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1b4ef6376e4eba6290647992f403d5e9ecf53140;p=pizzaservice-core.git Don't instance a remote bean, better look it up and call it's business methods Signed-off-by:Roland Häder --- 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; - } }