*/
private String currentMenu;
- /**
- * Menu system
- */
- private final Map<String, Menu> menus;
-
/**
* Logger instance
*/
@Log
private LoggerBeanLocal logger;
+ /**
+ * Menu system
+ */
+ private final Map<String, Menu> menus;
+
/**
* No instances can be created of this class
*/
return menu;
}
+ /**
+ * Logs exception and exits program
+ * <p>
+ * @param throwable Throwable
+ */
+ protected void abortProgramWithException (final Throwable throwable) {
+ // Log exception
+ this.logException(throwable);
+
+ // Abort here
+ System.exit(1);
+ }
+
/**
* Fills menu map with swing menus
*/
protected abstract void fillMenuMap ();
+ /**
+ * Getter for logger instance
+ * <p>
+ * @return Logger instance
+ */
+ protected LoggerBeanLocal getLogger () {
+ return this.logger;
+ }
+
/**
* Getter for menus map
* <p>
this.getLogger().logTrace("EXIT!"); //NOI18N
}
+ /**
+ * Logs an exception
+ * <p>
+ * @param throwable Throwable
+ */
+ protected void logException (final Throwable throwable) {
+ // Deligate to logger
+ this.getLogger().logException(throwable);
+ }
+
/**
* Shows given menu
* <p>
// Trace message
this.getLogger().logTrace("EXIT!"); //NOI18N
}
-
- /**
- * Getter for logger instance
- *
- * @return Logger instance
- */
- protected LoggerBeanLocal getLogger () {
- return this.logger;
- }
-
- /**
- * Logs an exception
- *
- * @param throwable Throwable
- */
- protected void logException (final Throwable throwable) {
- // Deligate to logger
- this.getLogger().logException(throwable);
- }
-
- /**
- * Logs exception and exits program
- *
- * @param throwable Throwable
- */
- protected void abortProgramWithException (final Throwable throwable) {
- // Log exception
- this.logException(throwable);
-
- // Abort here
- System.exit(1);
- }
}