]> git.mxchange.org Git - jcore-utils.git/commitdiff
Harr, this logger thing does only show LoggerBean.java as caller, not the actual...
authorRoland Haeder <roland@mxchange.org>
Thu, 10 Sep 2015 07:12:10 +0000 (09:12 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 10 Sep 2015 07:12:10 +0000 (09:12 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/org/mxchange/jcoreee/validator/BaseObjectValidator.java
src/org/mxchange/jcoreee/validator/bool/BaseBooleanValidator.java
src/org/mxchange/jcoreee/validator/bool/privacy_terms/PrivacyTermsCheckboxValidator.java
src/org/mxchange/jcoreee/validator/string/BaseStringValidator.java
src/org/mxchange/jcoreee/validator/string/names/NameValidator.java

index 5d1afec9c21a5ed519d1570c6a0a7b232f68b7fa..703e9abe0f1479ec83cb722c49c1389cb4ff72d3 100644 (file)
@@ -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
        }
 
        /**
index fc661bc09a82e0f98b695d615c326468b8e97164..17c4f84b0419a8c7cb15c58fa086e5a8212cad7d 100644 (file)
@@ -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)) {
index 17476d09543238be1b0a665b041974a0742f6989..68fbd8cb60d6eb6933eb398d3fcee5eec6834c6c 100644 (file)
@@ -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
        }
 }
index 65056d4b8c2d9448e720a13e6e0bb90dff61be3c..2075353c722f31ab7e41a1edf5e1a188149212e1 100644 (file)
@@ -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
        }
 }
index b512c3a896000ad9e1e52e265edfbe7e3a320dc8..a59caa25d9a3d2c7c825b826105bde04909be332 100644 (file)
@@ -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
        }
 }