2 * Copyright (C) 2015 Roland Haeder
\r
4 * This program is free software: you can redistribute it and/or modify
\r
5 * it under the terms of the GNU General Public License as published by
\r
6 * the Free Software Foundation, either version 3 of the License, or
\r
7 * (at your option) any later version.
\r
9 * This program is distributed in the hope that it will be useful,
\r
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
12 * GNU General Public License for more details.
\r
14 * You should have received a copy of the GNU General Public License
\r
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
\r
17 package org.mxchange.addressbook;
\r
19 import org.apache.logging.log4j.LogManager;
\r
20 import org.apache.logging.log4j.Logger;
\r
21 import org.mxchange.addressbook.application.Application;
\r
22 import org.mxchange.addressbook.client.Client;
\r
23 import org.mxchange.addressbook.manager.contact.ManageableContact;
\r
28 * @author Roland Haeder
\r
30 public class BaseFrameworkSystem implements FrameworkInterface {
\r
34 private final Logger LOG;
\r
37 * Application instance
\r
39 private Application application;
\r
44 private Client client;
\r
47 * Contact manager instance
\r
49 private ManageableContact contactManager;
\r
52 * Name of used database table, handled over to backend
\r
54 private String tableName;
\r
60 LOG = LogManager.getLogger(this);
\r
64 * No instances can be created of this class
\r
66 protected BaseFrameworkSystem () {
\r
70 * Application instance
\r
72 * @return the application
\r
75 public final Application getApplication () {
\r
76 return this.application;
\r
82 * @return the client
\r
85 public final Client getClient () {
\r
90 * Contact manager instance
\r
91 * @return the contactManager
\r
94 public final ManageableContact getContactManager () {
\r
95 return this.contactManager;
\r
99 * Contact manager instance
\r
100 * @param contactManager the contactManager to set
\r
102 protected final void setContactManager (final ManageableContact contactManager) {
\r
103 this.contactManager = contactManager;
\r
108 * @param client the client to set
\r
110 protected final void setClient (final Client client) {
\r
111 this.client = client;
\r
115 * Application instance
\r
117 * @param application the application to set
\r
119 protected final void setApplication(final Application application) {
\r
120 this.application = application;
\r
124 * Getter for logger
\r
128 protected final Logger getLogger () {
\r
133 * Name of used database table, handled over to backend
\r
135 * @return the tableName
\r
137 protected final String getTableName () {
\r
138 return this.tableName;
\r
142 * Name of used database table, handled over to backend
\r
144 * @param tableName the tableName to set
\r
146 protected final void setTableName (final String tableName) {
\r
147 this.tableName = tableName;
\r