From 09634a909f042967c7c4d9c406ad0cb435fb608a Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Thu, 10 Sep 2015 09:12:10 +0200 Subject: [PATCH] =?utf8?q?Harr,=20this=20logger=20thing=20does=20only=20sh?= =?utf8?q?ow=20LoggerBean.java=20as=20caller,=20not=20the=20actual=20calli?= =?utf8?q?ng=20class=20:-(=20Signed-off-by:Roland=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../jcoreee/validator/BaseObjectValidator.java | 10 +++++----- .../jcoreee/validator/bool/BaseBooleanValidator.java | 4 ++-- .../privacy_terms/PrivacyTermsCheckboxValidator.java | 4 ++-- .../jcoreee/validator/string/BaseStringValidator.java | 8 ++++---- .../jcoreee/validator/string/names/NameValidator.java | 4 ++-- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/org/mxchange/jcoreee/validator/BaseObjectValidator.java b/src/org/mxchange/jcoreee/validator/BaseObjectValidator.java index 5d1afec..703e9ab 100644 --- a/src/org/mxchange/jcoreee/validator/BaseObjectValidator.java +++ b/src/org/mxchange/jcoreee/validator/BaseObjectValidator.java @@ -68,7 +68,7 @@ public abstract class BaseObjectValidator extends BaseEeSystem implements Valida */ protected void preValidate (final FacesContext context, final UIComponent component, final Object value, final String[] requiredFields) throws ValidatorException { // Trace message - this.getLogger().logTrace(MessageFormat.format("context={0},component={1},value={2},requiredFields={3} - CALLED!", context, component, value, Arrays.toString(requiredFields))); //NOI18N + this.getLogger().logTrace(MessageFormat.format("preValidate: context={0},component={1},value={2},requiredFields={3} - CALLED!", context, component, value, Arrays.toString(requiredFields))); //NOI18N // Init message and key FacesMessage facesMessage = null; @@ -83,7 +83,7 @@ public abstract class BaseObjectValidator extends BaseEeSystem implements Valida // Check component's id against required fields and find a match for (final String field : requiredFields) { // Get logger - this.getLogger().logDebug(MessageFormat.format("field={0},clientId={1}", field, clientId)); //NOI18N + this.getLogger().logDebug(MessageFormat.format("preValidate: field={0},clientId={1}", field, clientId)); //NOI18N // Is it the same? if (clientId.endsWith(field)) { @@ -104,7 +104,7 @@ public abstract class BaseObjectValidator extends BaseEeSystem implements Valida } // Debug message - this.getLogger().logDebug(MessageFormat.format("isValidField={0}", isValidField)); //NOI18N + this.getLogger().logDebug(MessageFormat.format("preValidate: isValidField={0}", isValidField)); //NOI18N // Valid field? if (!isValidField) { @@ -113,7 +113,7 @@ public abstract class BaseObjectValidator extends BaseEeSystem implements Valida } // Debug message - this.getLogger().logDebug(MessageFormat.format("facesMessage={0}", facesMessage)); //NOI18N + this.getLogger().logDebug(MessageFormat.format("preValidate: facesMessage={0}", facesMessage)); //NOI18N // Is it not null? if (null != facesMessage) { @@ -121,7 +121,7 @@ public abstract class BaseObjectValidator extends BaseEeSystem implements Valida } // Trace message - this.getLogger().logTrace("EXIT!"); //NOI18N + this.getLogger().logTrace("preValidate: EXIT!"); //NOI18N } /** diff --git a/src/org/mxchange/jcoreee/validator/bool/BaseBooleanValidator.java b/src/org/mxchange/jcoreee/validator/bool/BaseBooleanValidator.java index fc661bc..17c4f84 100644 --- a/src/org/mxchange/jcoreee/validator/bool/BaseBooleanValidator.java +++ b/src/org/mxchange/jcoreee/validator/bool/BaseBooleanValidator.java @@ -38,7 +38,7 @@ public abstract class BaseBooleanValidator extends BaseObjectValidator implement @Override public void preValidate (final FacesContext context, final UIComponent component, final Object value, final String[] requiredFields) throws ValidatorException { // Trace message - this.getLogger().logTrace(MessageFormat.format("context={0},component={1},value={2},requiredFields={3} - CALLED!", context, component, value, Arrays.toString(requiredFields))); //NOI18N + this.getLogger().logTrace(MessageFormat.format("preValidate: context={0},component={1},value={2},requiredFields={3} - CALLED!", context, component, value, Arrays.toString(requiredFields))); //NOI18N // Pre-validate super.preValidate(context, component, value, requiredFields); @@ -50,7 +50,7 @@ public abstract class BaseBooleanValidator extends BaseObjectValidator implement // So far all fine, no check if the field is fine for (final String field : requiredFields) { // Debug message - this.getLogger().logDebug(MessageFormat.format("field={0},clientId={1}", field, clientId)); //NOI18N + this.getLogger().logDebug(MessageFormat.format("preValidate: field={0},clientId={1}", field, clientId)); //NOI18N // Is it the same? if (clientId.endsWith(field)) { diff --git a/src/org/mxchange/jcoreee/validator/bool/privacy_terms/PrivacyTermsCheckboxValidator.java b/src/org/mxchange/jcoreee/validator/bool/privacy_terms/PrivacyTermsCheckboxValidator.java index 17476d0..68fbd8c 100644 --- a/src/org/mxchange/jcoreee/validator/bool/privacy_terms/PrivacyTermsCheckboxValidator.java +++ b/src/org/mxchange/jcoreee/validator/bool/privacy_terms/PrivacyTermsCheckboxValidator.java @@ -33,7 +33,7 @@ public class PrivacyTermsCheckboxValidator extends BaseBooleanValidator implemen @Override public void validate (final FacesContext context, final UIComponent component, final Object value) throws ValidatorException { // Trace message - this.getLogger().logTrace(MessageFormat.format("context={0},component={1},value={2} - CALLED!", context, component, value)); //NOI18N + this.getLogger().logTrace(MessageFormat.format("validate: context={0},component={1},value={2} - CALLED!", context, component, value)); //NOI18N // All accepted, required fields String[] requiredFileds = {"privacy", "terms"}; //NOI18N @@ -42,6 +42,6 @@ public class PrivacyTermsCheckboxValidator extends BaseBooleanValidator implemen super.preValidate(context, component, value, requiredFileds); // Trace message - this.getLogger().logTrace("EXIT!"); //NOI18N + this.getLogger().logTrace("validate: EXIT!"); //NOI18N } } diff --git a/src/org/mxchange/jcoreee/validator/string/BaseStringValidator.java b/src/org/mxchange/jcoreee/validator/string/BaseStringValidator.java index 65056d4..2075353 100644 --- a/src/org/mxchange/jcoreee/validator/string/BaseStringValidator.java +++ b/src/org/mxchange/jcoreee/validator/string/BaseStringValidator.java @@ -35,7 +35,7 @@ public abstract class BaseStringValidator extends BaseObjectValidator { @Override protected void preValidate (final FacesContext context, final UIComponent component, final Object value, final String[] requiredFields) throws ValidatorException { // Trace message - this.getLogger().logTrace(MessageFormat.format("context={0},component={1},value={2},fields={3} - CALLED!", context, component, value, Arrays.toString(requiredFields))); //NOI18N + this.getLogger().logTrace(MessageFormat.format("preValidate: context={0},component={1},value={2},fields={3} - CALLED!", context, component, value, Arrays.toString(requiredFields))); //NOI18N // Pre-validate (e.g. on null) super.preValidate(context, component, value, requiredFields); @@ -48,7 +48,7 @@ public abstract class BaseStringValidator extends BaseObjectValidator { // So far all fine, no check if the field is fine for (final String field : requiredFields) { // Debug message - this.getLogger().logDebug(MessageFormat.format("field={0},clientId={1}", field, clientId)); //NOI18N + this.getLogger().logDebug(MessageFormat.format("preValidate: field={0},clientId={1}", field, clientId)); //NOI18N // Is it the same? if (clientId.endsWith(field)) { @@ -74,7 +74,7 @@ public abstract class BaseStringValidator extends BaseObjectValidator { } // Debug message - this.getLogger().logDebug(MessageFormat.format("facesMessage={0}", facesMessage)); //NOI18N + this.getLogger().logDebug(MessageFormat.format("preValidate: facesMessage={0}", facesMessage)); //NOI18N // Is it not null? if (null != facesMessage) { @@ -82,6 +82,6 @@ public abstract class BaseStringValidator extends BaseObjectValidator { } // Trace message - this.getLogger().logTrace("EXIT!"); //NOI18N + this.getLogger().logTrace("preValidate: EXIT!"); //NOI18N } } diff --git a/src/org/mxchange/jcoreee/validator/string/names/NameValidator.java b/src/org/mxchange/jcoreee/validator/string/names/NameValidator.java index b512c3a..a59caa2 100644 --- a/src/org/mxchange/jcoreee/validator/string/names/NameValidator.java +++ b/src/org/mxchange/jcoreee/validator/string/names/NameValidator.java @@ -32,7 +32,7 @@ public class NameValidator extends BaseStringValidator implements Validator { @Override public void validate (final FacesContext context, final UIComponent component, final Object value) throws ValidatorException { // Trace message - this.getLogger().logTrace(MessageFormat.format("context={0},component={1},value={2} - CALLED!", context, component, value)); //NOI18N + this.getLogger().logTrace(MessageFormat.format("validate: context={0},component={1},value={2} - CALLED!", context, component, value)); //NOI18N // All accepted, required fields String[] requiredFileds = {"firstName", "familyName", "city", "street"}; //NOI18N @@ -41,6 +41,6 @@ public class NameValidator extends BaseStringValidator implements Validator { super.preValidate(context, component, value, requiredFileds); // Trace message - this.getLogger().logTrace("EXIT!"); //NOI18N + this.getLogger().logTrace("validate: EXIT!"); //NOI18N } } -- 2.39.5