]> git.mxchange.org Git - addressbook-lib.git/commitdiff
Continued:
authorRoland Haeder <roland@mxchange.org>
Thu, 3 Sep 2015 08:40:58 +0000 (10:40 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 3 Sep 2015 08:40:58 +0000 (10:40 +0200)
- tpyo fixed ... ;-)
- it is now getSingletonManager(application)
- jcore.jar updated
Signed-off-by:Roland Häder <roland@mxchange.org>

lib/jcore.jar
src/org/mxchange/addressbook/application/AddressbookApplication.java
src/org/mxchange/addressbook/database/frontend/contact/AddressbookContactDatabaseFrontend.java
src/org/mxchange/addressbook/manager/contact/AddressbookContactManager.java

index 5ed709dcff75cac80035e78ccc19b4c4522edefb..526b59ecc5ea534f708216abf6c4ce26d6498229 100644 (file)
Binary files a/lib/jcore.jar and b/lib/jcore.jar differ
index 5a11c898d24ee35def0cc6d5fb7346274b3bbb49..9a17d06b27127c8e384cf81fcb11f9b76af23006 100644 (file)
@@ -354,7 +354,7 @@ public class AddressbookApplication extends BaseAddressbookSystem implements App
                this.parseArguments(args);
 
                // Launch application
-               ApplicationManager.getManager(this).start();
+               ApplicationManager.getSingeltonManager(this).start();
 
                // Good bye, but this should not be reached ...
                this.getLogger().warn("Unusual exit reached."); //NOI18N
index 24a0cf8d71fde4ca7c15413b0236f20fca9b64bb..7a5d205ae1e1ea611f9b819e2d9c0ee3d89925b5 100644 (file)
@@ -189,19 +189,19 @@ public class AddressbookContactDatabaseFrontend extends BaseDatabaseFrontend imp
                // Is there one row at least?
                if (result.hasNext()) {
                        // Then get it
-                       Storable storeable = result.next();
+                       Storable storable = result.next();
 
                        // Debug message
-                       this.getLogger().debug(MessageFormat.format("storeable={0}", storeable));
+                       this.getLogger().debug(MessageFormat.format("storable={0}", storable));
 
                        // Is it same instance?
-                       if (!(storeable instanceof Contact)) {
+                       if (!(storable instanceof Contact)) {
                                // Not same instance
-                               throw new IllegalArgumentException(MessageFormat.format("storeable={0} is not implementing Contact", storeable));
+                               throw new IllegalArgumentException(MessageFormat.format("storable={0} is not implementing Contact", storable));
                        }
 
                        // Cast it securely
-                       contact = (Contact) storeable;
+                       contact = (Contact) storable;
                }
 
                // Trace message
index 6a99cc5e926a70d0b9ef8954d2d65cc0a624014e..d7be29e3db5deddb23402927cc934fd675a91ea8 100644 (file)
@@ -603,13 +603,13 @@ public class AddressbookContactManager extends BaseManager implements Manageable
                this.getLogger().trace(MessageFormat.format("rowIndex={0},columnIndex={1} CALLED!", rowIndex, columnIndex)); //NOI18N
 
                // Then get specific row from database which is a Contact instance
-               Storable storeable = this.getFrontend().getStorableAtRow(rowIndex);
+               Storable storable = this.getFrontend().getStorableAtRow(rowIndex);
 
                // Debug message
-               this.getLogger().debug(MessageFormat.format("storeable={0}", storeable)); //NOI18N
+               this.getLogger().debug(MessageFormat.format("storable={0}", storable)); //NOI18N
 
                // It may return null
-               if (null == storeable) {
+               if (null == storable) {
                        // Nothing found
                        this.getLogger().warn("contact is null - returning null ..."); //NOI18N
                        return null;
@@ -624,7 +624,7 @@ public class AddressbookContactManager extends BaseManager implements Manageable
                // Now get that column
                Object value = null;
                try {
-                       value = storeable.getValueFromColumn(columnName);
+                       value = storable.getValueFromColumn(columnName);
                } catch (final IllegalArgumentException | NoSuchMethodException | IllegalAccessException | InvocationTargetException ex) {
                        this.abortProgramWithException(ex);
                }