]> git.mxchange.org Git - jcore.git/commitdiff
Getting rid of some things that don't work in EJB container ... :-(
authorRoland Haeder <roland@mxchange.org>
Mon, 7 Sep 2015 18:47:05 +0000 (20:47 +0200)
committerRoland Haeder <roland@mxchange.org>
Mon, 7 Sep 2015 18:47:05 +0000 (20:47 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/org/mxchange/jcore/BaseFrameworkSystem.java
src/org/mxchange/jcore/FrameworkInterface.java
src/org/mxchange/jcore/client/BaseClient.java
src/org/mxchange/jcore/manager/application/ApplicationManager.java
src/org/mxchange/jcore/model/contact/BaseContact.java

index 685635b0ad3b2feb239347d0ba913963bdf9f2ae..335af7aa89afb389202f167dd0197dbafd82e810 100644 (file)
@@ -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
index efefe2580394f28433b67b14416c8b6ea3dd4117..be309da1304cd76b1ddc31fab5a4cd0eac16fef5 100644 (file)
@@ -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
index 8ec8883c42dda15c0fad7efb4a4e55f167a2d83d..bdaea00fb0e30009f1ddc21978f663a92b9b3102 100644 (file)
@@ -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;
        }
 }
index 97ef00bb1a13028d705e555dd38356044b6ea140..4e54fd18cbf5edda6e011c5c53d7603a543b2c2c 100644 (file)
@@ -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
index 916a0f9acc85f9ee5fd733c3e88c4607e4f6604b..b02109eec86d850f94de1f9da80afee2d7f9e3de 100644 (file)
@@ -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<Contact> {
+public abstract class BaseContact extends BaseFrameworkSystem implements Contact, Comparable<Contact> {
 
        /**
         * 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;
        }
 
        /**