From 8503d5451ee2496ef1b8ec2f4776176a8d3d530d Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Mon, 7 Sep 2015 20:47:05 +0200 Subject: [PATCH] =?utf8?q?Getting=20rid=20of=20some=20things=20that=20don'?= =?utf8?q?t=20work=20in=20EJB=20container=20...=20:-(=20Signed-off-by:Rola?= =?utf8?q?nd=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../mxchange/jcore/BaseFrameworkSystem.java | 2 +- src/org/mxchange/jcore/FrameworkInterface.java | 2 +- src/org/mxchange/jcore/client/BaseClient.java | 18 +++--------------- .../application/ApplicationManager.java | 2 +- .../jcore/model/contact/BaseContact.java | 4 ++-- 5 files changed, 8 insertions(+), 20 deletions(-) diff --git a/src/org/mxchange/jcore/BaseFrameworkSystem.java b/src/org/mxchange/jcore/BaseFrameworkSystem.java index 685635b..335af7a 100644 --- a/src/org/mxchange/jcore/BaseFrameworkSystem.java +++ b/src/org/mxchange/jcore/BaseFrameworkSystem.java @@ -32,7 +32,7 @@ import org.mxchange.jcore.model.contact.Contact; * * @author Roland Haeder */ -public class BaseFrameworkSystem implements FrameworkInterface { +public abstract class BaseFrameworkSystem implements FrameworkInterface { /** * Bundle instance diff --git a/src/org/mxchange/jcore/FrameworkInterface.java b/src/org/mxchange/jcore/FrameworkInterface.java index efefe25..be309da 100644 --- a/src/org/mxchange/jcore/FrameworkInterface.java +++ b/src/org/mxchange/jcore/FrameworkInterface.java @@ -29,7 +29,7 @@ public interface FrameworkInterface { /** * File name (and path) for internalization bundle */ - public static final String I18N_BUNDLE_FILE = "org/mxchange/localization/bundle"; + public static final String I18N_BUNDLE_FILE = "org/mxchange/localization/bundle"; //NOI18N /** * Getter for manager diff --git a/src/org/mxchange/jcore/client/BaseClient.java b/src/org/mxchange/jcore/client/BaseClient.java index 8ec8883..bdaea00 100644 --- a/src/org/mxchange/jcore/client/BaseClient.java +++ b/src/org/mxchange/jcore/client/BaseClient.java @@ -38,9 +38,6 @@ public abstract class BaseClient extends BaseFrameworkSystem implements Client { protected BaseClient () { } - /** - * Shutdown method for all clients - */ @Override public void doShutdown () throws SQLException, IOException { // Trace message @@ -56,22 +53,13 @@ public abstract class BaseClient extends BaseFrameworkSystem implements Client { this.getLogger().trace("EXIT!"); //NOI18N } - /** - * Enables the client - */ @Override - public final void enableIsRunning () { + public void enableIsRunning () { this.isRunning = true; } - /** - * Determines whether the application is still active by checking some - * conditions - * - * @return Whether the application is still active - */ @Override - public final boolean isRunning () { + public boolean isRunning () { // In console client, 0 may have been used return this.isRunning; } @@ -79,7 +67,7 @@ public abstract class BaseClient extends BaseFrameworkSystem implements Client { /** * Disables the client */ - protected final void disableIsRunning () { + protected void disableIsRunning () { this.isRunning = false; } } diff --git a/src/org/mxchange/jcore/manager/application/ApplicationManager.java b/src/org/mxchange/jcore/manager/application/ApplicationManager.java index 97ef00b..4e54fd1 100644 --- a/src/org/mxchange/jcore/manager/application/ApplicationManager.java +++ b/src/org/mxchange/jcore/manager/application/ApplicationManager.java @@ -36,7 +36,7 @@ public class ApplicationManager extends BaseManager implements ManageableApplica * @param application An instance of a Application class * @return Get a managable application */ - public static final ManageableApplication getSingeltonManager (final Application application) { + public static ManageableApplication getSingeltonManager (final Application application) { // Application instance must be set if (null == application) { // Abort here diff --git a/src/org/mxchange/jcore/model/contact/BaseContact.java b/src/org/mxchange/jcore/model/contact/BaseContact.java index 916a0f9..b02109e 100644 --- a/src/org/mxchange/jcore/model/contact/BaseContact.java +++ b/src/org/mxchange/jcore/model/contact/BaseContact.java @@ -28,7 +28,7 @@ import org.mxchange.jcore.model.contact.gender.Gender; * @author Roland Haeder * @version 0.0 */ -public class BaseContact extends BaseFrameworkSystem implements Contact, Comparable { +public abstract class BaseContact extends BaseFrameworkSystem implements Contact, Comparable { /** * Id number @@ -121,7 +121,7 @@ public class BaseContact extends BaseFrameworkSystem implements Contact, Compara */ protected BaseContact () { // Fake gender - this.setGender(Gender.UNKNOWN); + this.gender = Gender.UNKNOWN; } /** -- 2.39.5