2 * Copyright (C) 2015 Roland Haeder
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 package org.mxchange.jsfcore.beans;
19 import javax.enterprise.context.Dependent;
20 import org.apache.logging.log4j.LogManager;
21 import org.apache.logging.log4j.Logger;
24 * A general bean class. Do not put things in here that are not serializable.
25 * The logger is currently not serializeable, so you will get error messages.
27 * @author Roland Haeder
30 public abstract class BaseFrameworkBean implements FrameworkBean {
35 private static final long serialVersionUID = 83258139481372814L;
40 private final Logger LOG;
47 this.LOG = LogManager.getLogger(this);
51 * Protected constructor, please don't add init() call here.
53 protected BaseFrameworkBean () {
61 protected Logger getLogger () {
66 * Super initialization method. Do not set @PostConstruct here. If you overwrite this method, please call it
67 * before (!) your own initialization.
69 * @throws RuntimeException If something unexpected happens
72 public void init () throws RuntimeException {