]> git.mxchange.org Git - pizzaservice-war.git/blobdiff - src/java/org/mxchange/pizzaapplication/beans/country/PizzaCountryWebRequestBean.java
Updated copyright year
[pizzaservice-war.git] / src / java / org / mxchange / pizzaapplication / beans / country / PizzaCountryWebRequestBean.java
index 16a09c03771706d1e3e14bd07e52834b2f1f5a68..450ae855bfe25ed8992334e06ac6fff94d324a48 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2016, 2017 Roland Häder
+ * Copyright (C) 2016 - 2024 Free Software Foundation
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU Affero General Public License as
@@ -31,7 +31,7 @@ import javax.inject.Named;
 import org.mxchange.jcountry.events.ObservableAdminAddedCountryEvent;
 import org.mxchange.jcountry.model.data.Country;
 import org.mxchange.jcountry.model.data.CountrySingletonBeanRemote;
-import org.mxchange.pizzaapplication.beans.BasePizzaController;
+import org.mxchange.pizzaapplication.beans.BasePizzaBean;
 
 /**
  * A country bean
@@ -40,7 +40,7 @@ import org.mxchange.pizzaapplication.beans.BasePizzaController;
  */
 @Named ("countryController")
 @RequestScoped
-public class PizzaCountryWebRequestBean extends BasePizzaController implements PizzaCountryWebRequestController {
+public class PizzaCountryWebRequestBean extends BasePizzaBean implements PizzaCountryWebRequestController {
 
        /**
         * Serial number
@@ -50,7 +50,7 @@ public class PizzaCountryWebRequestBean extends BasePizzaController implements P
        /**
         * Remote country EJB
         */
-       @EJB (lookup = "java:global/jfinancials-ejb/country!org.mxchange.jcountry.data.CountrySingletonBeanRemote")
+       @EJB (lookup = "java:global/pizzaservice-ejb/country!org.mxchange.jcountry.model.data.CountrySingletonBeanRemote")
        private CountrySingletonBeanRemote countryBean;
 
        /**
@@ -98,10 +98,10 @@ public class PizzaCountryWebRequestBean extends BasePizzaController implements P
        @SuppressWarnings ("ReturnOfCollectionOrArrayField")
        public List<Country> allCountries () {
                // Init list
-               List<Country> list = new LinkedList<>();
+               final List<Country> list = new LinkedList<>();
 
                // Get iterator
-               Iterator<Cache.Entry<Long, Country>> iterator = this.countryCache.iterator();
+               final Iterator<Cache.Entry<Long, Country>> iterator = this.countryCache.iterator();
 
                // Loop over all
                while (iterator.hasNext()) {
@@ -124,7 +124,7 @@ public class PizzaCountryWebRequestBean extends BasePizzaController implements P
                // Is cache there?
                if (!this.countryCache.iterator().hasNext()) {
                        // Get whole list
-                       List<Country> list = this.countryBean.allCountries();
+                       final List<Country> list = this.countryBean.allCountries();
 
                        // Add all
                        for (final Iterator<Country> iterator = list.iterator(); iterator.hasNext();) {