]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
non-final, better?
authorRoland Haeder <roland@mxchange.org>
Mon, 12 Oct 2015 15:15:18 +0000 (17:15 +0200)
committerRoland Haeder <roland@mxchange.org>
Mon, 12 Oct 2015 15:15:18 +0000 (17:15 +0200)
src/java/org/mxchange/pizzaapplication/beans/category/AdminCategoryWebBean.java
src/java/org/mxchange/pizzaapplication/beans/country/CountryWebBean.java
src/java/org/mxchange/pizzaapplication/beans/customer/CustomerWebBean.java
src/java/org/mxchange/pizzaapplication/beans/product/AdminProductWebBean.java
src/java/org/mxchange/pizzaapplication/servlet/receipt/PdfReceiptServlet.java

index 33b3d1d7e1cbd15f7dec36f3bbc2bd1c876978b2..33ceaca5a5258136373bd55dd0387ad2b7740bde 100644 (file)
@@ -47,14 +47,7 @@ public class AdminCategoryWebBean implements AdminCategoryWebController {
        /**
         * Remote bean for categories
         */
-       private final AdminCategorySessionBeanRemote categoryBean;
-
-       ////////////////////// Bean injections ///////////////////////
-       /**
-        * Shop bean
-        */
-       @Inject
-       private ShopWebController shopController;
+       private AdminCategorySessionBeanRemote categoryBean;
 
        /////////////////////// Properties /////////////////////
        /**
@@ -67,6 +60,14 @@ public class AdminCategoryWebBean implements AdminCategoryWebController {
         */
        private Category parentCategory;
 
+       ////////////////////// Bean injections ///////////////////////
+
+       /**
+        * Shop bean
+        */
+       @Inject
+       private ShopWebController shopController;
+
        /**
         * Default constructor
         */
index bba9b955a8c4b2ee3a470a4a9dc8085441d8a10a..e55683b34431d1c66fb982e2bc62f7f557e305b4 100644 (file)
@@ -45,7 +45,7 @@ public class CountryWebBean implements CountryWebController {
        /**
         * Remote country EJB
         */
-       private final CountrySingletonBeanRemote countryBean;
+       private CountrySingletonBeanRemote countryBean;
 
        /**
         * List of all countries
index 1774208dabd2a08b3d6eb563bc34e65e34613fc5..7e0710b9bf8ae566eff537da79f659d25825e3da 100644 (file)
@@ -71,7 +71,7 @@ public class CustomerWebBean implements CustomerWebController {
        /**
         * Remote customer bean
         */
-       private final CustomerSessionBeanRemote customerBean;
+       private CustomerSessionBeanRemote customerBean;
 
        /**
         * Email address
index 0ec98444fedc5ed457544d34ba87ed68c39996fb..3d2b74c5c2bd9e0337561e7325a2ebd3e8b07035 100644 (file)
@@ -46,18 +46,6 @@ public class AdminProductWebBean implements AdminProductWebController {
         */
        private static final long serialVersionUID = 5_819_375_183_472_871L;
 
-       /**
-        * Remote bean for products
-        */
-       private final AdminProductSessionBeanRemote productRemoteBean;
-
-       ////////////////////// Bean injections ///////////////////////
-       /**
-        * Shop bean
-        */
-       @Inject
-       private ShopWebController shopController;
-
        /////////////////////// Properties /////////////////////
        /**
         * Available
@@ -74,11 +62,24 @@ public class AdminProductWebBean implements AdminProductWebController {
         */
        private Float productPrice;
 
+       /**
+        * Remote bean for products
+        */
+       private AdminProductSessionBeanRemote productRemoteBean;
+
        /**
         * Property productTitle
         */
        private String productTitle;
 
+       ////////////////////// Bean injections ///////////////////////
+
+       /**
+        * Shop bean
+        */
+       @Inject
+       private ShopWebController shopController;
+
        /**
         * Default constructor
         */
@@ -131,6 +132,11 @@ public class AdminProductWebBean implements AdminProductWebController {
                return this.productRemoteBean.getAllProducts();
        }
 
+       @Override
+       public Boolean getProductAvailability () {
+               return this.productAvailability;
+       }
+
        @Override
        public void setProductAvailability (final Boolean productAvailability) {
                this.productAvailability = productAvailability;
@@ -165,9 +171,4 @@ public class AdminProductWebBean implements AdminProductWebController {
        public void setProductTitle (final String productTitle) {
                this.productTitle = productTitle;
        }
-
-       @Override
-       public Boolean getProductAvailability () {
-               return this.productAvailability;
-       }
 }
index db32ccae16e9d5ce4cafbba8240a0db7d7272f35..a1e9827fb38edfd927a6e313f9081c7ee0a0e04c 100644 (file)
@@ -43,7 +43,7 @@ public class PdfReceiptServlet extends HttpServlet {
        /**
         * Remote bean
         */
-       private final ReceiptBeanRemote receiptBean;
+       private ReceiptBeanRemote receiptBean;
 
        /**
         * Public constructor