*/
{
// Get new application instance
- LOG = LogManager.getLogger(this);
- LOG.debug("INITIALIZER!");
+ this.LOG = LogManager.getLogger(this);
+ this.LOG.debug("INITIALIZER!");
this.app = new PizzaServiceApplication();
}
import java.sql.SQLException;
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.jcore.exceptions.BadTokenException;
import org.mxchange.jcore.exceptions.CorruptedDatabaseFileException;
import org.mxchange.pizzaapplication.beans.basket.BasketBean;
*/
private BasketBean basket;
+ /**
+ * Logger instance
+ */
+ private final Logger LOG;
+
+ /**
+ * Initializer
+ */
+ {
+ this.LOG = LogManager.getLogger(this);
+ }
+
/**
* Outputs a div container with last added item + a link to the basket
* web page.
*/
@Override
public int doStartTag () throws JspException {
+ // Trace message
+ this.LOG.trace("CALLED!");
+
// Init output
StringBuilder out = new StringBuilder("<div class=\"mini_basket\">\n");
throw new JspException(ex);
}
+ // Trace message
+ this.LOG.trace("Returning " + SKIP_BODY + " ... - EXIT!");
+
// Don't process any body
return SKIP_BODY;
}
*/
@Override
public BasketBean getBasket () {
+ // Trace message
+ this.LOG.trace("basket=" + this.basket + " - EXIT!");
+
+ // Return it
return this.basket;
}
*/
@Override
public void setBasket (final BasketBean basket) {
+ // Trace message
+ this.LOG.trace("basked=" + basket + " - CALLED!");
+
+ // Set it here
this.basket = basket;
}
}