*/
package org.mxchange.jcoreee;
+import java.io.Serializable;
import java.util.ResourceBundle;
/**
*
* @author Roland Haeder<roland@mxchange.org>
*/
-public class BaseEeSystem {
+public class BaseEeSystem implements Serializable {
+
+ /**
+ * Serial number
+ */
+ private static final long serialVersionUID = 48_475_834_783_473_187L;
+
/**
* Bundle instance
*/
- private volatile ResourceBundle bundle;
+ private final ResourceBundle bundle;
/**
* Protectd constructor
*
* @return Bundle instance
*/
- private ResourceBundle getBundle () {
+ protected ResourceBundle getBundle () {
return this.bundle;
}
}
*/
package org.mxchange.jcoreee.beans;
-import java.io.Serializable;
-import java.util.ResourceBundle;
import javax.ejb.EJB;
+import org.mxchange.jcoreee.BaseEeSystem;
import org.mxchange.jcoreeelogger.beans.local.logger.Log;
import org.mxchange.jcoreeelogger.beans.local.logger.LoggerBeanLocal;
*
* @author Roland Haeder<roland@mxchange.org>
*/
-public abstract class BaseFrameworkBean implements Serializable {
+public abstract class BaseFrameworkBean extends BaseEeSystem {
/**
* Serial number
*/
private static final long serialVersionUID = 83_258_139_481_372_814L;
- /**
- * Resource bundle
- */
- private ResourceBundle bundle;
-
/**
* Logger instance
*/
* @throws RuntimeException If something unexpected happens
*/
protected void genericInit () throws RuntimeException {
- // Init resource bundle
- this.bundle = ResourceBundle.getBundle("org/mxchange/localization/bundle");
}
/**
* @return Localized message
*/
protected String getMessage (final String key) {
- return this.bundle.getString(key);
+ return this.getBundle().getString(key);
}
}
*/
public abstract class BaseObjectValidator extends BaseEeSystem implements Validator {
+ /**
+ * Serial number
+ */
+ private static final long serialVersionUID = 48_574_878_176_939_512L;
+
/**
* Needs to be implemented as the Validator interface needs to be
* implemented.
*/
public abstract class BaseBooleanValidator extends BaseObjectValidator implements Validator {
+ /**
+ * Serial number
+ */
+ private static final long serialVersionUID = 42_378_178_715_910_689L;
+
@Override
public void preValidate (final FacesContext context, final UIComponent component, final Object value, final String[] requiredFields) throws ValidatorException {
// Trace message
* @author Roland Haeder<roland@mxchange.org>
*/
public class PrivacyTermsCheckboxValidator extends BaseBooleanValidator implements Validator {
+ /**
+ * Serial number
+ */
+ private static final long serialVersionUID = 49_241_787_855_847_581L;
@Override
public void validate (final FacesContext context, final UIComponent component, final Object value) throws ValidatorException {
*/
public abstract class BaseLongValidator extends BaseObjectValidator implements Validator {
+ /**
+ * Serial number
+ */
+ private static final long serialVersionUID = 25_481_878_590_589_321L;
+
@Override
public void preValidate (final FacesContext context, final UIComponent component, final Object value, final String[] requiredFields) throws ValidatorException {
// Trace message
*/
public class ItemAmountValidator extends BaseLongValidator implements Validator {
+ /**
+ * Serial number
+ */
+ private static final long serialVersionUID = 64_578_478_218_698_930L;
+
@Override
public void validate (final FacesContext context, final UIComponent component, final Object value) throws ValidatorException {
// Trace message
* @author Roland Haeder<roland@mxchange.org>
*/
public abstract class BaseStringValidator extends BaseObjectValidator {
+ /**
+ * Serial number
+ */
+ private static final long serialVersionUID = 15_484_578_781_760_287L;
@Override
protected void preValidate (final FacesContext context, final UIComponent component, final Object value, final String[] requiredFields) throws ValidatorException {
*/
public class NameValidator extends BaseStringValidator implements Validator {
+ /**
+ * Serial number
+ */
+ private static final long serialVersionUID = 27_587_896_710_689_451L;
+
@Override
public void validate (final FacesContext context, final UIComponent component, final Object value) throws ValidatorException {
// Trace message