/**
* General class
*
- * @author Roland Haeder
+ * @author Roland Haeder<roland@mxchange.org>
*/
-public class BaseFrameworkSystem implements FrameworkInterface {
+public abstract class BaseFrameworkSystem implements FrameworkInterface {
/**
* Bundle instance
*
* @return Instance from this application
*/
- public static final FrameworkInterface getInstance () {
+ public static FrameworkInterface getInstance () {
// Return it
return selfInstance;
}
@Override
- public final Application getApplication () {
+ public Application getApplication () {
return this.application;
}
*
* @return Logger instance
*/
- protected final Logger getLogger () {
+ protected Logger getLogger () {
return this.LOG;
}
@Override
- public final Manageable getManager () {
+ public Manageable getManager () {
return this.manager;
}
@Override
- public final String getMessageStringFromKey (final String key) {
+ public String getMessageStringFromKey (final String key) {
// Return message
return this.getBundle().getString(key);
}
*
* @param throwable Any type of Throwable
*/
- protected final void abortProgramWithException (final Throwable throwable) {
+ protected void abortProgramWithException (final Throwable throwable) {
// Log exception ...
this.logException(throwable);
*
* @param application the application to set
*/
- protected final void setApplication (final Application application) {
+ protected void setApplication (final Application application) {
this.application = application;
}
@Override
- public final Client getClient () {
+ public Client getClient () {
return this.client;
}
*
* @return Resource bundle
*/
- protected final ResourceBundle getBundle () {
+ protected ResourceBundle getBundle () {
return BaseFrameworkSystem.bundle;
}
*
* @param client the client to set
*/
- protected final void setClient (final Client client) {
+ protected void setClient (final Client client) {
this.client = client;
}
@Override
- public final void logException (final Throwable exception) {
+ public void logException (final Throwable exception) {
// Log this exception
this.getLogger().catching(exception);
}
*
* @param manager the manager instance to set
*/
- protected final void setManager (final Manageable manager) {
+ protected void setManager (final Manageable manager) {
this.manager = manager;
}
*
* @return Contact instance
*/
- protected final Contact getContact () {
+ protected Contact getContact () {
return this.contact;
}
*
* @param contact A Contact instance
*/
- protected final void setContact (final Contact contact) {
+ protected void setContact (final Contact contact) {
this.contact = contact;
}