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;
/**
*
*/
private ResourceBundle bundle;
- /**
- * Logger instance
- */
- @EJB
- @Log
- private LoggerBeanLocal logger;
-
/**
* Getter for message from given key
*
return this.getBundle().getString(key);
}
- /**
- * Getter for local bean logger
- *
- * @return Local bean logger
- */
- protected LoggerBeanLocal getLogger () {
- return this.logger;
- }
-
/**
* Getter for bundle instance
*
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
*/
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.
*
// Trace message
this.getLogger().logTrace("EXIT!"); //NOI18N
}
+
+ /**
+ * Getter for local bean logger
+ *
+ * @return Local bean logger
+ */
+ protected LoggerBeanLocal getLogger () {
+ return this.logger;
+ }
}