* Logger instance
*/
@Log
- private LoggerBeanLocal logger;
+ private LoggerBeanLocal loggerBeanLocal;
/**
* Protected constructor
// Get initial context
Context context = new InitialContext();
- // Lookup logger
- this.logger = (LoggerBeanLocal) context.lookup("java:global/jcore-logger-ejb/logger!org.mxchange.jcoreeelogger.beans.local.logger.LoggerBeanLocal"); //NOI18N
+ // Lookup loggerBeanLocal
+ this.loggerBeanLocal = (LoggerBeanLocal) context.lookup("java:global/jcore-logger-ejb/logger!org.mxchange.jcoreeelogger.beans.local.logger.LoggerBeanLocal"); //NOI18N
} catch (final NamingException ex) {
// Continue to throw
throw new RuntimeException(ex);
}
/**
- * Getter for logger instance
+ * Getter for loggerBeanLocal instance
* <p>
* @return Logger instance
*/
- protected LoggerBeanLocal getLogger () {
- return this.logger;
+ protected LoggerBeanLocal getLoggerBeanLocal () {
+ return this.loggerBeanLocal;
}
/**
* Logger instance
*/
@Log
- private LoggerBeanLocal logger;
+ private LoggerBeanLocal loggerBeanLocal;
/**
* Protected constructor
// Get context
Context context = new InitialContext();
- // Get logger
- this.logger = (LoggerBeanLocal) context.lookup("java:global/jcore-logger-ejb/logger!org.mxchange.jcoreeelogger.beans.local.logger.LoggerBeanLocal"); //NOI18N
+ // Get loggerBeanLocal
+ this.loggerBeanLocal = (LoggerBeanLocal) context.lookup("java:global/jcore-logger-ejb/logger!org.mxchange.jcoreeelogger.beans.local.logger.LoggerBeanLocal"); //NOI18N
} catch (final NamingException ex) {
// Output it and exit
System.err.println(MessageFormat.format("Cannot initialize: {0}", ex)); //NOI18N
@Override
public void doBootstrap () {
- this.getLogger().logDebug("Initializing application ..."); //NOI18N
+ this.getLoggerBeanLocal().logDebug("Initializing application ..."); //NOI18N
// Init client variable
Client client = null;
// Is console or Swing choosen?
if (this.isConsole()) {
// Debug message
- this.getLogger().logDebug("Initializing console client ..."); //NOI18N
+ this.getLoggerBeanLocal().logDebug("Initializing console client ..."); //NOI18N
// Init console client instance
client = new ConsoleClient(this);
} else if (this.isGui()) {
// Debug message
- this.getLogger().logDebug("Initializing GUI (Swing) client ..."); //NOI18N
+ this.getLoggerBeanLocal().logDebug("Initializing GUI (Swing) client ..."); //NOI18N
// Init console instance
client = new SwingClient(this);
} else {
// Not client choosen
- this.getLogger().logError("No client choosen. Cannot launch."); //NOI18N
+ this.getLoggerBeanLocal().logError("No client choosen. Cannot launch."); //NOI18N
try {
this.doShutdown();
this.getClient().enableIsRunning();
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
@Override
AddressbookClient client = (AddressbookClient) this.getClient();
// Debug message
- this.getLogger().logTrace("CALLED!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
// TODO The application should be running now
// Output introduction
client.doUserMenuChoice();
} catch (final UnhandledUserChoiceException ex) {
// Log exception
- this.getLogger().logException(ex);
+ this.getLoggerBeanLocal().logException(ex);
}
try {
// --- Main loop ends here ---
// Debug message
- this.getLogger().logDebug("Main loop exit - shutting down ..."); //NOI18N
+ this.getLoggerBeanLocal().logDebug("Main loop exit - shutting down ..."); //NOI18N
}
/**
@Override
public void doShutdown () throws SQLException, IOException {
// Trace message
- this.getLogger().logTrace("CALLED!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
// Shutdown client
this.getClient().doShutdown();
// Regular exit reached
- this.getLogger().logInfo("End of program (last line)"); //NOI18N
+ this.getLoggerBeanLocal().logInfo("End of program (last line)"); //NOI18N
System.exit(0);
}
* Enables console client by setting propper flag
*/
private void enableConsoleClient () {
- this.getLogger().logDebug("Enabling console client (may become optional client) ..."); //NOI18N
+ this.getLoggerBeanLocal().logDebug("Enabling console client (may become optional client) ..."); //NOI18N
this.consoleClient = true;
this.guiClient = false;
}
* Enables GUI client by setting propper flag
*/
private void enableGuiClient () {
- this.getLogger().logDebug("Enabling GUI client (may become new default client) ..."); //NOI18N
+ this.getLoggerBeanLocal().logDebug("Enabling GUI client (may become new default client) ..."); //NOI18N
this.consoleClient = false;
this.guiClient = true;
}
*/
private void parseArguments (final String[] args) {
// Trace message
- this.getLogger().logTrace(MessageFormat.format("args()={0} - CALLED!", args.length)); //NOI18N
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("args()={0} - CALLED!", args.length)); //NOI18N
// Debug message
- this.getLogger().logDebug(MessageFormat.format("Parsing {0} arguments ...", args.length)); //NOI18N
+ this.getLoggerBeanLocal().logDebug(MessageFormat.format("Parsing {0} arguments ...", args.length)); //NOI18N
for (final String arg : args) {
// Switch on it
switch (arg) {
*/
private void showIntro () {
// Trace message
- this.getLogger().logTrace("CALLED!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
// Let the client show it
this.getClient().showWelcome();
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
/**
* @param args Arguments handled to program
*/
private void start (final String args[]) {
- this.getLogger().logInfo("Program is started."); //NOI18N
+ this.getLoggerBeanLocal().logInfo("Program is started."); //NOI18N
try {
// Init properties file
}
// Good bye, but this should not be reached ...
- this.getLogger().logWarning("Unusual exit reached."); //NOI18N
+ this.getLoggerBeanLocal().logWarning("Unusual exit reached."); //NOI18N
try {
this.doShutdown();
}
/**
- * Getter for logger instance
+ * Getter for loggerBeanLocal instance
* <p>
* @return Logger instance
*/
- protected LoggerBeanLocal getLogger () {
- return this.logger;
+ protected LoggerBeanLocal getLoggerBeanLocal () {
+ return this.loggerBeanLocal;
}
/**
* @param exception Throwable
*/
protected void logException (final Throwable exception) {
- this.getLogger().logException(exception);
+ this.getLoggerBeanLocal().logException(exception);
}
* Logger instance
*/
@Log
- private LoggerBeanLocal logger;
+ private LoggerBeanLocal loggerBeanLocal;
/**
* Menu system
// Get context
Context context = new InitialContext();
- // Lookup logger
- this.logger = (LoggerBeanLocal) context.lookup("java:global/jcore-logger-ejb/logger!org.mxchange.jcoreeelogger.beans.local.logger.LoggerBeanLocal"); //NOI18N
+ // Lookup loggerBeanLocal
+ this.loggerBeanLocal = (LoggerBeanLocal) context.lookup("java:global/jcore-logger-ejb/logger!org.mxchange.jcoreeelogger.beans.local.logger.LoggerBeanLocal"); //NOI18N
} catch (final NamingException ex) {
// Continue to throw
throw new RuntimeException(ex);
protected abstract void fillMenuMap ();
/**
- * Getter for logger instance
+ * Getter for loggerBeanLocal instance
* <p>
* @return Logger instance
*/
- protected LoggerBeanLocal getLogger () {
- return this.logger;
+ protected LoggerBeanLocal getLoggerBeanLocal () {
+ return this.loggerBeanLocal;
}
/**
*/
protected void initContactManager () throws SQLException {
// Trace message
- this.getLogger().logTrace("CALLED!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
// Debug message
- this.getLogger().logDebug("Initializing contact manager ..."); //NOI18N
+ this.getLoggerBeanLocal().logDebug("Initializing contact manager ..."); //NOI18N
// Init contact facade with console client
// TODO Static initial amount of contacts
this.setFacade(facade);
// Debug message
- this.getLogger().logDebug("Contact manager has been initialized."); //NOI18N
+ this.getLoggerBeanLocal().logDebug("Contact manager has been initialized."); //NOI18N
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
/**
* @param throwable Throwable
*/
protected void logException (final Throwable throwable) {
- // Deligate to logger
- this.getLogger().logException(throwable);
+ // Deligate to loggerBeanLocal
+ this.getLoggerBeanLocal().logException(throwable);
}
/**
*/
protected void showMenu (final String menuType) {
// Trace message
- this.getLogger().logTrace(MessageFormat.format("menuType={0} - CALLED!", menuType)); //NOI18N
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("menuType={0} - CALLED!", menuType)); //NOI18N
// Get menu from type
Menu menu = this.getMenu(menuType);
menu.show(this);
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
}
*/
public ConsoleClient (final Application application) {
// Trace message
- this.getLogger().logTrace(MessageFormat.format("application={0} - CALLED!", application)); //NOI18N
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("application={0} - CALLED!", application)); //NOI18N
// Set application instance
this.setApplication(application);
this.scanner = new Scanner(System.in, "UTF-8"); //NOI18N
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
@Override
public void displayAddressBox (final Contact contact) {
// Trace message
- this.getLogger().logTrace(MessageFormat.format("contact={0} - CALLED!", contact)); //NOI18N
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("contact={0} - CALLED!", contact)); //NOI18N
// Is it null?
if (null == contact) {
this.outputMessage(MessageFormat.format("Strasse, PLZ Ort, Land: {0}\n{1} {2}\n{3}", contact.getContactStreet(), contact.getContactZipCode(), contact.getContactCity(), contact.getContactCountry()));
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
@Override
public void displayNameBox (final Contact contact) {
// Trace message
- this.getLogger().logTrace(MessageFormat.format("contact={0} - CALLED!", contact)); //NOI18N
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("contact={0} - CALLED!", contact)); //NOI18N
// Is it null?
if (null == contact) {
this.outputMessage(MessageFormat.format("Anrede, Vorname, Name: {0} {1} {2}", gender, contact.getContactFirstName(), contact.getContactFamilyName()));
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
@Override
public void displayOtherDataBox (final Contact contact) {
// Trace message
- this.getLogger().logTrace(MessageFormat.format("contact={0} - CALLED!", contact)); //NOI18N
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("contact={0} - CALLED!", contact)); //NOI18N
// Is it null?
if (null == contact) {
this.outputMessage(MessageFormat.format("Telefonnumer: {0}\nFaxnummer: {1}\nHandy: {2}\nKommentar:\n{3}", contact.getContactPhoneNumber(), contact.getContactFaxNumber(), contact.getContactCellphoneNumber(), contact.getContactComment()));
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
@Override
public void doChangeOwnAddressData (final Contact contact) {
// Trace message
- this.getLogger().logTrace(MessageFormat.format("contact={0} - CALLED!", contact)); //NOI18N
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("contact={0} - CALLED!", contact)); //NOI18N
// Is it null?
if (null == contact) {
contact.setContactCountry(country);
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
@Override
public void doChangeOwnNameData (final Contact contact) {
// Trace message
- this.getLogger().logTrace(MessageFormat.format("contact={0} - CALLED!", contact)); //NOI18N
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("contact={0} - CALLED!", contact)); //NOI18N
// Is it null?
if (null == contact) {
contact.setContactFamilyName(familyName);
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
@Override
public void doChangeOwnOtherData (final Contact contact) {
// Trace message
- this.getLogger().logTrace(MessageFormat.format("contact={0} - CALLED!", contact)); //NOI18N
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("contact={0} - CALLED!", contact)); //NOI18N
// Is it null?
if (null == contact) {
contact.setContactComment(comment);
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
@Override
public Contact doEnterOwnData () {
// Trace message
- this.getLogger().logTrace("CALLED!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
// Get manager and cast it
ContactFacade manager = (ContactFacade) this.getFacade();
Contact contact = new UserContact(gender, firstName, familyName);
// Trace message
- this.getLogger().logTrace(MessageFormat.format("contact={0} - EXIT!", contact)); //NOI18N
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("contact={0} - EXIT!", contact)); //NOI18N
// And return object
return contact;
@Override
public void doShutdown () throws SQLException, IOException {
// Trace message
- this.getLogger().logTrace("CALLED!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
// Parent call
super.doShutdown();
// TODO Add other shutdown stuff
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
@Override
public void doUserMenuChoice () throws UnhandledUserChoiceException, MenuInitializationException {
// Trace message
- this.getLogger().logTrace("CALLED!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
// Get all access keys from menu
char[] accessKeys = MenuTools.getAccessKeysFromMenuMap(this.getMenus(), this.getCurrentMenu());
}
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
@Override
public char enterChar (final char[] validChars, final String message) {
// Trace message
- this.getLogger().logTrace(MessageFormat.format("validChars={0},message={1} - CALLED!", Arrays.toString(validChars), message)); //NOI18N
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("validChars={0},message={1} - CALLED!", Arrays.toString(validChars), message)); //NOI18N
// The validChars must not null be null and filled with at least one char
if (null == validChars) {
}
// Trace message
- this.getLogger().logTrace(MessageFormat.format("input={0} - EXIT!", input)); //NOI18N
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("input={0} - EXIT!", input)); //NOI18N
// Return read char
return input;
@Override
public Gender enterGender (final String message) {
// Trace message
- this.getLogger().logTrace(MessageFormat.format("message={0} - CALLED!", message)); //NOI18N
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("message={0} - CALLED!", message)); //NOI18N
// Get valid chars
char[] validChars = Gender.validChars();
assert (g instanceof Gender) : "g is not set."; //NOI18N
// Trace message
- this.getLogger().logTrace(MessageFormat.format("g={0} - EXIT!", g)); //NOI18N
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("g={0} - EXIT!", g)); //NOI18N
// Return it
return g;
@Override
public int enterInt (final int minimum, final int maximum, final String message) {
// Trace message
- this.getLogger().logTrace(MessageFormat.format("minimum={0},maximum={1},message={2} - CALLED!", minimum, maximum, message)); //NOI18N
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("minimum={0},maximum={1},message={2} - CALLED!", minimum, maximum, message)); //NOI18N
// Minimum should not be below zero
assert (minimum >= 0) : MessageFormat.format("minimum={0} is below zero", minimum); //NOI18N
}
// Trace message
- this.getLogger().logTrace(MessageFormat.format("input={0} - EXIT!", input)); //NOI18N
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("input={0} - EXIT!", input)); //NOI18N
// Return it
return input;
@Override
public String enterString (final int minLength, final int maxLength, final String message, final boolean allowEmpty) {
// Trace message
- this.getLogger().logTrace(MessageFormat.format("minLength={0},maxLength={1},message={2}allowEmpty={3} - CALLED!", minLength, maxLength, message, allowEmpty)); //NOI18N
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("minLength={0},maxLength={1},message={2}allowEmpty={3} - CALLED!", minLength, maxLength, message, allowEmpty)); //NOI18N
// Check on length, e.g. country codes are excactly 2 chars long
assert (maxLength >= minLength);
}
// Trace message
- this.getLogger().logTrace(MessageFormat.format("input={0} - EXIT!", input)); //NOI18N
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("input={0} - EXIT!", input)); //NOI18N
// Return it
return input;
@Override
public void init () {
// Trace message
- this.getLogger().logTrace("CALLED!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
// Init contact manager here
try {
this.fillMenuMap();
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
@Override
this.outputMessage("Copyright(c) 2015 by Roland Haeder, this is free software"); //NOI18N
// Debug message
- this.getLogger().logDebug("Intro shown to user"); //NOI18N
+ this.getLoggerBeanLocal().logDebug("Intro shown to user"); //NOI18N
}
@Override
public void userChooseChangeContactData (final Contact contact) throws UnhandledUserChoiceException {
// Trace message
- this.getLogger().logTrace(MessageFormat.format("contact={0} CALLED!", contact)); //NOI18N
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("contact={0} CALLED!", contact)); //NOI18N
// Contact must not be null
if (null == contact) {
}
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
/**
String input = this.readString();
// Debug message
- this.getLogger().logDebug(MessageFormat.format("input={0}", input)); //NOI18N
+ this.getLoggerBeanLocal().logDebug(MessageFormat.format("input={0}", input)); //NOI18N
// This must be only one character
if (input.length() != 1) {
String input = this.readString();
// Debug message
- this.getLogger().logDebug(MessageFormat.format("input={0}", input)); //NOI18N
+ this.getLoggerBeanLocal().logDebug(MessageFormat.format("input={0}", input)); //NOI18N
// Init number with invalid value
int num = -1;
num = Integer.parseInt(input);
} catch (final NumberFormatException e) {
this.outputMessage("Bitte geben Sie nur Zahlen ein!");
- this.getLogger().logWarning(MessageFormat.format("No numbers-only entered. input={0},message={1}", input, e.getMessage())); //NOI18N
+ this.getLoggerBeanLocal().logWarning(MessageFormat.format("No numbers-only entered. input={0},message={1}", input, e.getMessage())); //NOI18N
}
// Trace message
- this.getLogger().logTrace(MessageFormat.format("num={0} - EXIT!", num)); //NOI18N
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("num={0} - EXIT!", num)); //NOI18N
// Return read number
return num;
@Override
protected void fillMenuMap () {
// Trace message
- this.getLogger().logTrace("CALLED!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
// Initialize first (main) menu
Menu menu = new ConsoleMenu("main", this); //NOI18N
this.getMenus().put("main", menu); //NOI18N
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
}
*/
private AddressbookFrame (final Client client) {
// Debug line
- this.getLogger().logTrace(MessageFormat.format("client={0}: CALLED!", client)); //NOI18N
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("client={0}: CALLED!", client)); //NOI18N
// Set frame instance
this.frame = new JFrame();
this.setClient(client);
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
@Override
public Contact doEnterOwnData () {
// Trace message
- this.getLogger().logTrace("CALLED!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
// Is the "add contact" window visible?
if (this.addContact.isVisible()) {
this.addContact.setVisible(true);
// Trace message
- this.getLogger().logTrace("Returning null : EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("Returning null : EXIT!"); //NOI18N
// Return value is not supported
return null;
@Override
public void doShutdown () {
// Trace message
- this.getLogger().logTrace("CALLED!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
// First only show shutdown status
this.updateStatus("shutdown"); //NOI18N
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
/**
@Override
public void enableMainWindow () {
// Trace message
- this.getLogger().logTrace("CALLED!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
// Enable it again
this.frame.setEnabled(true);
this.frame.requestFocus();
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
@Override
@Override
public void setupFrame (final Client client) throws IOException {
// Debug line
- this.getLogger().logTrace(MessageFormat.format("client={0}: CALLED!", client)); //NOI18N
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("client={0}: CALLED!", client)); //NOI18N
// Has the user entered own data?
if (((ContactFacade) this.getClient().getFacade()).isOwnContactAdded()) {
// Debug message
- this.getLogger().logDebug("Disabling menus: isOwnContactAdded()=false"); //NOI18N
+ this.getLoggerBeanLocal().logDebug("Disabling menus: isOwnContactAdded()=false"); //NOI18N
// Not entered yet, so disable "add" menu
this.addOwnItem.setEnabled(false);
this.updateStatus("done"); //NOI18N
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
/**
@Override
public void init () throws FrameAlreadyInitializedException {
// Debug line
- this.getLogger().logTrace("CALLED!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
// Has this frame been initialized?
if (this.isInitialized()) {
this.initialized = true;
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
/**
@Override
public void shutdownApplication () {
// Trace message
- this.getLogger().logTrace("CALLED!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
// To do this, the frame must be initialized
if (!this.isInitialized()) {
// Not initalized, so bad call
- this.getLogger().logFatal("Bad call of shutdownApplication(). Please report this."); //NOI18N
+ this.getLoggerBeanLocal().logFatal("Bad call of shutdownApplication(). Please report this."); //NOI18N
return;
}
}
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
/**
*/
private void addMenuItem (final JMenu menu, final String key, final ActionListener listener) {
// Trace message
- this.getLogger().logTrace(MessageFormat.format("menu={0},key={1},listener={2} - CALLED!", menu, key, listener)); //NOI18N
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("menu={0},key={1},listener={2} - CALLED!", menu, key, listener)); //NOI18N
// New instance
JMenuItem item = this.initMenuItemWithTooltip(key);
menu.add(item);
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
/**
*/
private void addTextFieldWithLabelToPanel (final JPanel panel, final String key, final int fieldLength) {
// Trace message
- this.getLogger().logTrace(MessageFormat.format("panel={0},key={1},fieldLength={2} - CALLED!", panel, key, fieldLength)); //NOI18N
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("panel={0},key={1},fieldLength={2} - CALLED!", panel, key, fieldLength)); //NOI18N
// Init label for given key
JLabel label = new JLabel(this.getBundle().getString(String.format("AddressbookFrame.%s.text", key))); //NOI18N
panel.add(field);
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
/**
*/
private void initAddCancelButtons () {
// Trace message
- this.getLogger().logTrace("CALLED!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
// Init panel
JPanel panel = new JPanel();
this.addContact.add(panel);
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
/**
*/
private void initAddContactDialog () {
// Trace message
- this.getLogger().logTrace("CALLED!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
// Instance dialog and set title
this.addContact = new JDialog();
*/ this.addContact.setVisible(true);
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
/**
*/
private void initAddressDataPanel (final JDialog dialog) {
// Trace message
- this.getLogger().logTrace("CALLED!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
// Panel "address" input boxes
JPanel addressPanel = new JPanel();
dialog.add(addressPanel);
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
/**
*/
private void initComponents () {
// Debug line
- this.getLogger().logTrace("CALLED!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
// Set default close operation
this.frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.initOtherDialogs();
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
/**
*/
private JMenuItem initMenuItemWithTooltip (final String key) {
// Debug line
- this.getLogger().logTrace(MessageFormat.format("key={0} - CALLED!", key)); //NOI18N
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("key={0} - CALLED!", key)); //NOI18N
JMenuItem item = new JMenuItem(this.getBundle().getString(String.format("AddressbookFrame.menuItem.%s.text", key))); //NOI18N
item.setToolTipText(this.getBundle().getString(String.format("AddressbookFrame.menuItem.%s.toolTipText", key))); //NOI18N
// Trace message
- this.getLogger().logTrace(MessageFormat.format("item={0} - EXIT!", item)); //NOI18N
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("item={0} - EXIT!", item)); //NOI18N
// Return it
return item;
*/
private void initMenuSystem () {
// Trace message
- this.getLogger().logTrace("CALLED!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
// Init menu bar, menu and item instances
JMenuBar menuBar = new JMenuBar();
this.frame.add(menuBar, BorderLayout.NORTH);
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
/**
*/
private void initNameDataPanel (final JDialog dialog) {
// Trace message
- this.getLogger().logTrace(MessageFormat.format("dialog={0} - CALLED!", dialog)); //NOI18N
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("dialog={0} - CALLED!", dialog)); //NOI18N
// Panel "name" input boxes
JPanel namePanel = new JPanel();
dialog.add(namePanel);
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
/**
*/
private void initOtherDataPanel (final JDialog dialog) {
// Trace message
- this.getLogger().logTrace(MessageFormat.format("dialog={0} - CALLED!", dialog)); //NOI18N
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("dialog={0} - CALLED!", dialog)); //NOI18N
// Panel "other" input boxes
JPanel otherPanel = new JPanel();
dialog.add(otherPanel);
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
/**
*/
private void initOtherDialogs () {
// Trace message
- this.getLogger().logTrace("CALLED!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
// Init other windows:
// 1) Add contact
this.initAddContactDialog();
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
/**
*/
private void initStatusPanel () {
// Trace message
- this.getLogger().logTrace("CALLED!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
// Init status label (which needs to be updated
this.statusLabel = new JLabel();
this.frame.add(panel, BorderLayout.SOUTH);
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
/**
*/
private void initTable () {
// Trace message
- this.getLogger().logTrace("CALLED!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
// Instance table model
this.dataModel = new ContactTableModel(this.getClient().getFacade());
this.frame.add(scroller, BorderLayout.CENTER);
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
/**
*/
private void updateStatus (final String type) {
// Trace message
- this.getLogger().logTrace(MessageFormat.format("type={0} - CALLED!", type)); //NOI18N
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("type={0} - CALLED!", type)); //NOI18N
// Set status message
this.statusLabel.setText(this.getBundle().getString(String.format("AddressbookFrame.statusLabel.%s.text", type))); //NOI18N
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
/**
*/
public SwingClient (final Application application) {
// Debug message
- this.getLogger().logTrace("CALLED!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
// Set application instance
this.setApplication(application);
this.frame = AddressbookFrame.getSelfInstance(this);
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
@Override
@Override
public Contact doEnterOwnData () {
// Trace message
- this.getLogger().logTrace("CALLED!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
// Deligate this call to the frame
return this.frame.doEnterOwnData();
@Override
public void doShutdown () throws SQLException, IOException {
// Debug message
- this.getLogger().logTrace("CALLED!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
// Parent call
super.doShutdown();
// TODO Add other shutdown stuff
// Debug message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
@Override
@Override
public SelectableMenuItem getMenuItem (final char accessKey, final String text) {
// Debug message
- this.getLogger().logTrace("CALLED!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
// Returns null as the menu is now no longer controlled here.
return null;
@Override
public void init () {
// Debug message
- this.getLogger().logTrace("CALLED!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
try {
// Init contact manager here
}
// Debug message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
@Override
@Override
public void showWelcome () {
// Debug message
- this.getLogger().logTrace("CALLED!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
// Not implemented here
}
* Logger instance
*/
@Log
- private LoggerBeanLocal logger;
+ private LoggerBeanLocal loggerBeanLocal;
/**
* Translated column name list
*/
public AddressbookContactFacade (final Client client) throws SQLException {
// Trace message
- this.getLogger().logTrace(MessageFormat.format("client={1} - CALLED!", client)); //NOI18N
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("client={1} - CALLED!", client)); //NOI18N
// Make sure all parameters are set correctly
if (null == client) {
@Override
public void addContact (final Contact contact) throws ContactAlreadyAddedException {
// Trace message
- this.getLogger().logTrace(MessageFormat.format("contact={0} - CALLED!", contact)); //NOI18N
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("contact={0} - CALLED!", contact)); //NOI18N
// Contact instance must not be null
if (null == contact) {
this.entityManager.persist(contact);
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
@Override
@Override
public void doChangeAddressData (final Contact contact) {
// Trace message
- this.getLogger().logTrace(MessageFormat.format("contact={0} CALLED!", contact)); //NOI18N
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("contact={0} CALLED!", contact)); //NOI18N
// Contact must not be null
if (null == contact) {
}
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
@Override
public void doChangeNameData (final Contact contact) {
// Trace message
- this.getLogger().logTrace(MessageFormat.format("contact={0} CALLED!", contact)); //NOI18N
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("contact={0} CALLED!", contact)); //NOI18N
// Contact must not be null
if (null == contact) {
}
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
@Override
@Override
public void doChangeOtherData (final Contact contact) {
// Trace message
- this.getLogger().logTrace(MessageFormat.format("contact={0} CALLED!", contact)); //NOI18N
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("contact={0} CALLED!", contact)); //NOI18N
// Contact must not be null
if (null == contact) {
}
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
@Override
public void doChangeOwnData () {
// Trace message
- this.getLogger().logTrace("CALLED!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
/*
* First check if the user has registered own contact, before that
// Ask user what to change
client.userChooseChangeContactData(contact);
} catch (final UnhandledUserChoiceException ex) {
- this.getLogger().logException(ex);
+ this.getLoggerBeanLocal().logException(ex);
}
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
@Override
@Override
public void doEnterOwnData () throws ContactAlreadyAddedException {
// Trace message
- this.getLogger().logTrace("CALLED!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
// Is own contact already added?
if (this.isOwnContactAdded()) {
}
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
@Override
@Override
public void doShutdown () throws SQLException, IOException {
// Trace message
- this.getLogger().logTrace("CALLED!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
// Shut down the database layer
this.entityManager.close();
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
@Override
public DialableCellphoneNumber enterOwnCellNumber () {
// Trace message
- this.getLogger().logTrace("CALLED!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
// Get and cast client instance
AddressbookClient client = (AddressbookClient) this.getClient();
@Override
public String enterOwnCity () {
// Trace message
- this.getLogger().logTrace("CALLED!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
// Get and cast client instance
AddressbookClient client = (AddressbookClient) this.getClient();
@Override
public String enterOwnComment () {
// Trace message
- this.getLogger().logTrace("CALLED!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
// Get and cast client instance
AddressbookClient client = (AddressbookClient) this.getClient();
@Override
public String enterOwnCompanyName () {
// Trace message
- this.getLogger().logTrace("CALLED!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
// Get and cast client instance
AddressbookClient client = (AddressbookClient) this.getClient();
@Override
public Country enterOwnCountryCode () {
// Trace message
- this.getLogger().logTrace("CALLED!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
// Get and cast client instance
AddressbookClient client = (AddressbookClient) this.getClient();
@Override
public String enterOwnEmailAddress () {
// Trace message
- this.getLogger().logTrace("CALLED!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
// Get and cast client instance
AddressbookClient client = (AddressbookClient) this.getClient();
@Override
public String enterOwnFamilyName () {
// Trace message
- this.getLogger().logTrace("CALLED!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
// Get and cast client instance
AddressbookClient client = (AddressbookClient) this.getClient();
@Override
public DialableFaxNumber enterOwnFaxNumber () {
// Trace message
- this.getLogger().logTrace("CALLED!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
// Get and cast client instance
AddressbookClient client = (AddressbookClient) this.getClient();
@Override
public String enterOwnFirstName () {
// Trace message
- this.getLogger().logTrace("CALLED!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
// Get and cast client instance
AddressbookClient client = (AddressbookClient) this.getClient();
@Override
public Gender enterOwnGender () {
// Trace message
- this.getLogger().logTrace("CALLED!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
// Get and cast client instance
AddressbookClient client = (AddressbookClient) this.getClient();
@Override
public DialableLandLineNumber enterOwnPhoneNumber () {
// Trace message
- this.getLogger().logTrace("CALLED!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
// Get and cast client instance
AddressbookClient client = (AddressbookClient) this.getClient();
@Override
public String enterOwnStreet () {
// Trace message
- this.getLogger().logTrace("CALLED!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
// Get and cast client instance
AddressbookClient client = (AddressbookClient) this.getClient();
@Override
public int enterOwnZipCode () {
// Trace message
- this.getLogger().logTrace("CALLED!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
// Get and cast client instance
AddressbookClient client = (AddressbookClient) this.getClient();
@Override
public Object getValueFromRowColumn (final int rowIndex, final int columnIndex) {
// Trace message
- this.getLogger().logTrace(MessageFormat.format("rowIndex={0},columnIndex={1} CALLED!", rowIndex, columnIndex)); //NOI18N
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("rowIndex={0},columnIndex={1} CALLED!", rowIndex, columnIndex)); //NOI18N
// Convert column index -> name
String columnName = this.getColumnName(columnIndex);
// Debug message
- this.getLogger().logDebug(MessageFormat.format("columnName={0}", columnName)); //NOI18N
+ this.getLoggerBeanLocal().logDebug(MessageFormat.format("columnName={0}", columnName)); //NOI18N
// Init value
Object value = null;
// Trace message
- this.getLogger().logTrace(MessageFormat.format("value={0} - EXIT!", value)); //NOI18N
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("value={0} - EXIT!", value)); //NOI18N
// Return it
return value;
@Override
public boolean isOwnContactAdded () {
// Trace message
- this.getLogger().logTrace("CALLED!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
// Init variable
boolean isAdded = false;
// Trace message
- this.getLogger().logTrace(MessageFormat.format("isAdded={0} : EXIT!", isAdded)); //NOI18N
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("isAdded={0} : EXIT!", isAdded)); //NOI18N
// Return result
return isAdded;
@Override
public void registerContact (final Contact contact) {
// Trace message
- this.getLogger().logTrace(MessageFormat.format("contact={0} CALLED!", contact)); //NOI18N
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("contact={0} CALLED!", contact)); //NOI18N
// Sanity check
if (null == contact) {
}
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
/**
assert (this.translatedColumnNames instanceof List) : "this.translatedColumnNames is not initialized"; //NOI18N
// Debug message
- this.getLogger().logTrace("CALLED!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
// First get an iterator from key set to iterate over
Iterator<String> iterator = this.getBundle().keySet().iterator();
// Does the key start with AddressbookContactFacade.columnName ?
if (key.startsWith("ContactManager.columnName")) { //NOI18N
// This is the wanted entry.
- this.getLogger().logDebug(MessageFormat.format("key={0}", key)); //NOI18N
+ this.getLoggerBeanLocal().logDebug(MessageFormat.format("key={0}", key)); //NOI18N
// Convert string to array based on delimiter '.'
String[] tokens = this.getArrayFromString(key, "."); //NOI18N
String columnName = tokens[tokens.length - 2];
// Debug message
- this.getLogger().logDebug(MessageFormat.format("columnName={0} - adding ...", columnName)); //NOI18N
+ this.getLoggerBeanLocal().logDebug(MessageFormat.format("columnName={0} - adding ...", columnName)); //NOI18N
// So add it
this.columnNames.add(columnName);
}
// Debug message
- this.getLogger().logTrace(MessageFormat.format("getColumnCount()={0}: EXIT!", this.getColumnCount())); //NOI18N
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("getColumnCount()={0}: EXIT!", this.getColumnCount())); //NOI18N
}
/**
- * Getter for logger instance
+ * Getter for loggerBeanLocal instance
* <p>
* @return Logger instance
*/
- private LoggerBeanLocal getLogger () {
- return this.logger;
+ private LoggerBeanLocal getLoggerBeanLocal () {
+ return this.loggerBeanLocal;
}
/**
*/
private Contact getOwnContact () {
// Trace message
- this.getLogger().logTrace("CALLED!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N
// Deligate this call to database frontend
Contact contact = null;
//Contact contact = ((AddressbookContactFrontend) this.getFrontend()).getOwnContact();
// Trace message
- this.getLogger().logTrace(MessageFormat.format("contact={0} - EXIT!", contact)); //NOI18N
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("contact={0} - EXIT!", contact)); //NOI18N
// Return instance or null
return contact;
* @param exception Throwable
*/
protected void logException (final Throwable exception) {
- this.getLogger().logException(exception);
+ this.getLoggerBeanLocal().logException(exception);
}
}
@Override
public void show (final Client client) {
// Trace message
- this.getLogger().logTrace(MessageFormat.format("client={0} CALLED!", client)); //NOI18N
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("client={0} CALLED!", client)); //NOI18N
// Client must not be null
if (null == client) {
Iterator<SelectableMenuItem> iterator = this.menuList.iterator();
// Debug message
- this.getLogger().logDebug("Showing menu with '" + this.menuList.size() + "' entries.");
+ this.getLoggerBeanLocal().logDebug("Showing menu with '" + this.menuList.size() + "' entries.");
// Output all menus
while (iterator.hasNext()) {
}
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
/**
*/
protected void initMenu (final String menuType, final Client client) {
// Trace message
- this.getLogger().logTrace(MessageFormat.format("menuType={0},client={1} - CALLED!", menuType, client)); //NOI18N
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("menuType={0},client={1} - CALLED!", menuType, client)); //NOI18N
// Init menu list
this.menuList = new ArrayList<>(5);
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
}
*/
public ConsoleMenu (final String menuType, final Client client) {
// Trace message
- this.getLogger().logTrace(MessageFormat.format("menuType={0},client={1} - CALLED!", menuType, client)); //NOI18N
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("menuType={0},client={1} - CALLED!", menuType, client)); //NOI18N
// Client must not be null
if (null == client) {
@Override
public void show (final Client client) {
// Trace message
- this.getLogger().logTrace(MessageFormat.format("client={0} - CALLED!", client)); //NOI18N
+ this.getLoggerBeanLocal().logTrace(MessageFormat.format("client={0} - CALLED!", client)); //NOI18N
// Client must not be null
if (null == client) {
c.showEntry(this);
// Trace message
- this.getLogger().logTrace("EXIT!"); //NOI18N
+ this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N
}
}