From: Roland Haeder Date: Thu, 10 Sep 2015 06:43:59 +0000 (+0200) Subject: Nope, no logging here. :-( X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ef6fb2a4e8e9dd54d2d347c1808450ee24bd5590;p=jcore-utils.git Nope, no logging here. :-( Signed-off-by:Roland Häder --- diff --git a/lib/jcore-ee-logger.jar b/lib/jcore-ee-logger.jar index 0b6d194..5ebf6d0 100644 Binary files a/lib/jcore-ee-logger.jar and b/lib/jcore-ee-logger.jar differ diff --git a/lib/jcore.jar b/lib/jcore.jar index 54ec8aa..de27ca6 100644 Binary files a/lib/jcore.jar and b/lib/jcore.jar differ diff --git a/src/org/mxchange/jcoreee/BaseEeSystem.java b/src/org/mxchange/jcoreee/BaseEeSystem.java index d44ffcb..e2e8401 100644 --- a/src/org/mxchange/jcoreee/BaseEeSystem.java +++ b/src/org/mxchange/jcoreee/BaseEeSystem.java @@ -17,9 +17,6 @@ package org.mxchange.jcoreee; import java.util.ResourceBundle; -import javax.ejb.EJB; -import org.mxchange.jcoreeelogger.beans.local.logger.Log; -import org.mxchange.jcoreeelogger.beans.local.logger.LoggerBeanLocal; /** * @@ -31,13 +28,6 @@ public class BaseEeSystem { */ private ResourceBundle bundle; - /** - * Logger instance - */ - @EJB - @Log - private LoggerBeanLocal logger; - /** * Getter for message from given key * @@ -49,15 +39,6 @@ public class BaseEeSystem { return this.getBundle().getString(key); } - /** - * Getter for local bean logger - * - * @return Local bean logger - */ - protected LoggerBeanLocal getLogger () { - return this.logger; - } - /** * Getter for bundle instance * diff --git a/src/org/mxchange/jcoreee/validator/BaseObjectValidator.java b/src/org/mxchange/jcoreee/validator/BaseObjectValidator.java index 64daca0..5d1afec 100644 --- a/src/org/mxchange/jcoreee/validator/BaseObjectValidator.java +++ b/src/org/mxchange/jcoreee/validator/BaseObjectValidator.java @@ -18,12 +18,15 @@ package org.mxchange.jcoreee.validator; import java.text.MessageFormat; import java.util.Arrays; +import javax.ejb.EJB; import javax.faces.application.FacesMessage; import javax.faces.component.UIComponent; import javax.faces.context.FacesContext; import javax.faces.validator.Validator; import javax.faces.validator.ValidatorException; import org.mxchange.jcoreee.BaseEeSystem; +import org.mxchange.jcoreeelogger.beans.local.logger.Log; +import org.mxchange.jcoreeelogger.beans.local.logger.LoggerBeanLocal; /** * A general object validation class. Please implement javax.faces.validator.Validator @@ -34,6 +37,13 @@ import org.mxchange.jcoreee.BaseEeSystem; */ public abstract class BaseObjectValidator extends BaseEeSystem implements Validator { + /** + * Logger instance + */ + @EJB + @Log + private LoggerBeanLocal logger; + /** * Needs to be implemented as the Validator interface needs to be implemented. * @@ -113,4 +123,13 @@ public abstract class BaseObjectValidator extends BaseEeSystem implements Valida // Trace message this.getLogger().logTrace("EXIT!"); //NOI18N } + + /** + * Getter for local bean logger + * + * @return Local bean logger + */ + protected LoggerBeanLocal getLogger () { + return this.logger; + } }