2 * Copyright (C) 2015 Roland Haeder
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 package org.mxchange.jcore;
19 import org.apache.logging.log4j.Logger;
20 import org.mxchange.jcore.application.Application;
21 import org.mxchange.jcore.client.Client;
22 import org.mxchange.jcore.manager.Manageable;
25 * A general interface which should be always expanded
27 * @author Roland Haeder
29 public interface FrameworkInterface {
31 * File name (and path) for internalization bundle
33 public static final String I18N_BUNDLE_FILE = "org/mxchange/localization/bundle";
38 * @return Manager instance
40 public Manageable getManager ();
47 public Client getClient ();
54 public Logger getLogger ();
57 * Application instance
59 * @return the application
61 public Application getApplication ();
64 * Getter for human-readable string from given key
66 * @param key Key to return
67 * @return Human-readable message
69 public String getMessageStringFromKey (final String key);
72 * Logs given exception
74 * @param exception Exception to log
76 public void logException (final Throwable exception);