]> git.mxchange.org Git - pizzaservice.git/commitdiff
Don't instance a remote bean, better look it up and call it's business methods
authorRoland Haeder <roland@mxchange.org>
Fri, 4 Sep 2015 17:34:13 +0000 (19:34 +0200)
committerRoland Haeder <roland@mxchange.org>
Fri, 4 Sep 2015 17:34:13 +0000 (19:34 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

PizzaService-ejb/src/java/org/mxchange/pizzaapplication/tags/basket/BasketTag.java
PizzaService-ejb/src/java/org/mxchange/pizzaapplication/tags/basket/MiniBasketTag.java

index b6b062bfd6cd3ab7fab4770b1ee1ab739af1ec58..5e8ae1bdc91187eb9821e6246694967d1d2b7c85 100644 (file)
@@ -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
 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);
 }
index f1d76c3730daf4d4dbd8abe992750d5c2370ba4d..61b53fe60761d5249504b1a152a5af68689c9984 100644 (file)
@@ -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;
-       }
 }