From: Roland Haeder Date: Tue, 21 Jul 2015 11:28:00 +0000 (+0200) Subject: Added generic interface to generic class + added some methods to it X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2583e413e2851a210339586018fcdda2e81b4dbb;p=jbonuscard-lib.git Added generic interface to generic class + added some methods to it Signed-off-by:Roland Häder --- 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 (); }