From: Roland Haeder Date: Mon, 7 Sep 2015 18:47:05 +0000 (+0200) Subject: Getting rid of some things that don't work in EJB container ... :-( X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8503d5451ee2496ef1b8ec2f4776176a8d3d530d;p=jcore.git Getting rid of some things that don't work in EJB container ... :-( Signed-off-by:Roland Häder --- 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; } /**