From: Roland Haeder Date: Thu, 6 Aug 2015 12:37:03 +0000 (+0200) Subject: Added setter/getter for contact instance + made some getter/setter final. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5657d8f409881b7eb6701aa7201f7016d16e1873;p=jcore.git Added setter/getter for contact instance + made some getter/setter final. Signed-off-by:Roland Häder --- 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 */