From 76b50056e61ed4945741a84fd0033f479b46616b Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Thu, 24 Sep 2015 10:51:34 +0200 Subject: [PATCH] =?utf8?q?Got=20rid=20of=20BaseFrameworkBean=20as=20nobody?= =?utf8?q?=20is=20using=20this=20anymore=20Signed-off-by:Roland=20H=C3=A4d?= =?utf8?q?er=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../jcoreee/beans/BaseFrameworkBean.java | 77 ------------------- 1 file changed, 77 deletions(-) delete mode 100644 src/org/mxchange/jcoreee/beans/BaseFrameworkBean.java diff --git a/src/org/mxchange/jcoreee/beans/BaseFrameworkBean.java b/src/org/mxchange/jcoreee/beans/BaseFrameworkBean.java deleted file mode 100644 index d80a1f7..0000000 --- a/src/org/mxchange/jcoreee/beans/BaseFrameworkBean.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright (C) 2015 Roland Haeder - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.mxchange.jcoreee.beans; - -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; - -/** - * A general bean class. Do not put things in here that are not serializable. - * The logger is currently not serializable, so you will get error messages. - * - * @author Roland Haeder - */ -public abstract class BaseFrameworkBean extends BaseEeSystem { - - /** - * Serial number - */ - private static final long serialVersionUID = 83_258_139_481_372_814L; - - /** - * Logger instance - */ - @EJB - @Log - private LoggerBeanLocal logger; - - /** - * Protected constructor, please don't add init() call here. - */ - protected BaseFrameworkBean () { - } - - /** - * Super initialization method. If you wrie your initialization method, - * please call this method before (!) your own initialization. - * - * @throws RuntimeException If something unexpected happens - */ - protected void genericInit () throws RuntimeException { - } - - /** - * Returns an EJB logger instance - * - * @return EBJ logger instance - */ - protected LoggerBeanLocal getLogger () { - return this.logger; - } - - /** - * Getter for localized message from key - * - * @param key Key for message - * @return Localized message - */ - protected String getMessage (final String key) { - return this.getBundle().getString(key); - } -} -- 2.39.5