* @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
// 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