From 2583e413e2851a210339586018fcdda2e81b4dbb Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Tue, 21 Jul 2015 13:28:00 +0200 Subject: [PATCH] =?utf8?q?Added=20generic=20interface=20to=20generic=20cla?= =?utf8?q?ss=20+=20added=20some=20methods=20to=20it=20Signed-off-by:Roland?= =?utf8?q?=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../addressbook/BaseFrameworkSystem.java | 5 ++++- .../mxchange/addressbook/FrameworkInterface.java | 16 ++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/Addressbook/src/org/mxchange/addressbook/BaseFrameworkSystem.java b/Addressbook/src/org/mxchange/addressbook/BaseFrameworkSystem.java index a9d6dff..44ce5b2 100644 --- a/Addressbook/src/org/mxchange/addressbook/BaseFrameworkSystem.java +++ b/Addressbook/src/org/mxchange/addressbook/BaseFrameworkSystem.java @@ -28,7 +28,7 @@ import org.mxchange.addressbook.manager.contact.ManageableContact; * * @author Roland Haeder */ -public class BaseFrameworkSystem { +public class BaseFrameworkSystem implements FrameworkInterface { /** * Class' logger */ @@ -72,6 +72,7 @@ public class BaseFrameworkSystem { * * @return the application */ + @Override public Application getApplication () { return this.application; } @@ -81,6 +82,7 @@ public class BaseFrameworkSystem { * * @return the client */ + @Override public Client getClient () { return this.client; } @@ -89,6 +91,7 @@ public class BaseFrameworkSystem { * Contact manager instance * @return the contactManager */ + @Override public ManageableContact getContactManager () { return this.contactManager; } diff --git a/Addressbook/src/org/mxchange/addressbook/FrameworkInterface.java b/Addressbook/src/org/mxchange/addressbook/FrameworkInterface.java index 4ab3bb5..ae1c570 100644 --- a/Addressbook/src/org/mxchange/addressbook/FrameworkInterface.java +++ b/Addressbook/src/org/mxchange/addressbook/FrameworkInterface.java @@ -16,6 +16,8 @@ */ package org.mxchange.addressbook; +import org.mxchange.addressbook.application.Application; +import org.mxchange.addressbook.client.Client; import org.mxchange.addressbook.manager.contact.ManageableContact; /** @@ -29,4 +31,18 @@ public interface FrameworkInterface { * @return Contact manager instance */ public ManageableContact getContactManager(); + + /** + * Client instance + * + * @return the client + */ + public Client getClient (); + + /** + * Application instance + * + * @return the application + */ + public Application getApplication (); } -- 2.39.5