/*
- * 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
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
*/
@Named ("countryController")
@RequestScoped
-public class PizzaCountryWebRequestBean extends BasePizzaController implements PizzaCountryWebRequestController {
+public class PizzaCountryWebRequestBean extends BasePizzaBean implements PizzaCountryWebRequestController {
/**
* Serial number
/**
* 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;
/**
@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()) {
// 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();) {