From 5657d8f409881b7eb6701aa7201f7016d16e1873 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Thu, 6 Aug 2015 14:37:03 +0200 Subject: [PATCH] =?utf8?q?Added=20setter/getter=20for=20contact=20instance?= =?utf8?q?=20+=20made=20some=20getter/setter=20final.=20Signed-off-by:Rola?= =?utf8?q?nd=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../mxchange/jcore/BaseFrameworkSystem.java | 30 +++++++++++++++++-- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/src/org/mxchange/jcore/BaseFrameworkSystem.java b/src/org/mxchange/jcore/BaseFrameworkSystem.java index 50c199d..24048ee 100644 --- a/src/org/mxchange/jcore/BaseFrameworkSystem.java +++ b/src/org/mxchange/jcore/BaseFrameworkSystem.java @@ -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 */ -- 2.39.5