From 6813ebd9601e63279d04490b302c35a991cf1d92 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Thu, 15 Oct 2015 16:52:44 +0200 Subject: [PATCH] added debug logging --- .../addressbook/validator/user/UserIdValidator.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/org/mxchange/addressbook/validator/user/UserIdValidator.java b/src/org/mxchange/addressbook/validator/user/UserIdValidator.java index a449dee7..a1b20666 100644 --- a/src/org/mxchange/addressbook/validator/user/UserIdValidator.java +++ b/src/org/mxchange/addressbook/validator/user/UserIdValidator.java @@ -62,6 +62,9 @@ public class UserIdValidator extends BaseLongValidator implements Validator { * @param event User registration event */ public void afterRegistration (final @Observes UserRegisteredEvent event) { + // Trace message + System.out.println(MessageFormat.format("UserIdValidator:afterRegistration: event={0} - CALLED!", event)); //NOI18N + // event should not be null if (null == event) { // Throw NPE @@ -80,8 +83,14 @@ public class UserIdValidator extends BaseLongValidator implements Validator { // Get user instance User registeredUser = event.getUser(); + // Debug message + System.out.println(MessageFormat.format("UserIdValidator:afterRegistration: registeredUser={0}", registeredUser)); //NOI18N + // Update cache UserIdValidator.cachedStatus.add(registeredUser.getUserId()); + + // Trace message + System.out.println("UserIdValidator:afterRegistration: EXIT!"); //NOI18N } @Override -- 2.39.5