+++ /dev/null
-/*
- * 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
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-package org.mxchange.pizzaapplication;
-
-import org.mxchange.jsfcore.BaseServletSystem;
-
-/**
- * A general class for whole pizza application.
- *
- * @author Roland Haeder
- */
-public class BasePizzaServiceSystem extends BaseServletSystem {
-}
import java.text.MessageFormat;
import java.util.Deque;
import java.util.Iterator;
+import org.mxchange.jcore.BaseFrameworkSystem;
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;
-import org.mxchange.pizzaapplication.BasePizzaServiceSystem;
/**
* Main application class
*
* @author Roland Haeder
*/
-public class PizzaServiceApplication extends BasePizzaServiceSystem implements PizzaApplication {
+public class PizzaServiceApplication extends BaseFrameworkSystem implements PizzaApplication {
/**
* Default constructor
*/
this.getLogger().trace("CALLED!"); //NOI18N
// Ask frontend for a list of products
- return (Iterator<Product>) this.productFrontend.getAvailableProductsIterator();
+ return this.productFrontend.getAvailableProductsIterator();
}
@Override
this.getLogger().trace("CALLED!"); //NOI18N
// Ask frontend for a list of products
- return (Iterator<Product>) this.productFrontend.getAllProductsIterator();
+ return this.productFrontend.getAllProductsIterator();
}
@Override
this.getLogger().trace("CALLED!"); //NOI18N
// Ask frontend for a list of categories
- return (Iterator<Category>) this.categoryFrontend.getAllCategoriesIterator();
+ return this.categoryFrontend.getAllCategoriesIterator();
}
/**