]> git.mxchange.org Git - jcore.git/commitdiff
Added setter/getter for contact instance + made some getter/setter final.
authorRoland Haeder <roland@mxchange.org>
Thu, 6 Aug 2015 12:37:03 +0000 (14:37 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 6 Aug 2015 12:37:03 +0000 (14:37 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/org/mxchange/jcore/BaseFrameworkSystem.java

index 50c199dbc7fb4467c9819567feb6e486dec3865b..24048eed7526b2724724ef0238e3f9325c5742dc 100644 (file)
@@ -33,6 +33,7 @@ import org.apache.logging.log4j.LogManager;
 import org.apache.logging.log4j.Logger;
 import org.mxchange.jcore.application.Application;
 import org.mxchange.jcore.client.Client;
+import org.mxchange.jcore.contact.Contact;
 import org.mxchange.jcore.database.frontend.DatabaseFrontend;
 import org.mxchange.jcore.manager.Manageable;
 
@@ -73,6 +74,11 @@ public class BaseFrameworkSystem implements FrameworkInterface {
         */
        private Client client;
 
+       /**
+        * Contact instance
+        */
+       private Contact contact;
+
        /**
         * Manager instance
         */
@@ -654,7 +660,7 @@ public class BaseFrameworkSystem implements FrameworkInterface {
         *
         * @return DatabaseFrontend instance
         */
-       protected DatabaseFrontend getWrapper () {
+       protected final DatabaseFrontend getWrapper () {
                return this.wrapper;
        }
 
@@ -663,10 +669,28 @@ public class BaseFrameworkSystem implements FrameworkInterface {
         *
         * @param wrapper A DatabaseFrontend instance
         */
-       protected void setWrapper (final DatabaseFrontend wrapper) {
+       protected final void setWrapper (final DatabaseFrontend wrapper) {
                this.wrapper = wrapper;
        }
-       
+
+       /**
+        * Getter for Contact instance
+        *
+        * @return Contact instance
+        */
+       protected final Contact getContact () {
+               return this.contact;
+       }
+
+       /**
+        * Setter for Contact instance
+        *
+        * @param contact A Contact instance
+        */
+       protected final void setContact (final Contact contact) {
+               this.contact = contact;
+       }
+
        /**
         * Initializes i18n bundles
         */