]> git.mxchange.org Git - pizzaservice-war.git/blobdiff - src/java/org/mxchange/pizzaapplication/BasePizzaServiceSystem.java
was duplicate
[pizzaservice-war.git] / src / java / org / mxchange / pizzaapplication / BasePizzaServiceSystem.java
index 8fe6981520b5ab4ecc1e892d429f6055154a1ef3..dfc3cfa9ee0d9a21eb24959fa440bcb11eb33e99 100644 (file)
  */
 package org.mxchange.pizzaapplication;
 
-import java.text.MessageFormat;
-import javax.servlet.ServletContext;
-import org.mxchange.jcore.BaseFrameworkSystem;
+import org.mxchange.jsfcore.BaseServletSystem;
 
 /**
  * A general class for whole pizza application.
  *
  * @author Roland Haeder
  */
-public class BasePizzaServiceSystem extends BaseFrameworkSystem {
-       /**
-        * Initializes properties from given servlet configuration
-        * @param context Servlet context instance
-        */
-       protected void initProperties (final ServletContext context) {
-               // Trace message
-               this.getLogger().trace(MessageFormat.format("context={0} - CALLED!", context)); //NOI18N
-
-               // We need some properties that needs to be set
-               for (final String name : this.getPropertyNames()) {
-                       // Debug log
-                       this.getLogger().debug(MessageFormat.format("name={0}", name)); //NOI18N
-
-                       // Get value
-                       String value = context.getInitParameter(name);
-
-                       // Debug message
-                       this.getLogger().debug(MessageFormat.format("value={0}", value)); //NOI18N
-
-                       // Is it null?
-                       if (null == value) {
-                               // Value is null
-                               throw new NullPointerException(MessageFormat.format("value for {0} is null, maybe invalid context parameter?", name)); //NOI18N
-                       } else if (name.equals("database.backend.storagepath")) { //NOI18N
-                               // Need to expand this path
-                               value = context.getRealPath(String.format("../../%s", value.trim())); //NOI18N
-                       }
-
-                       // Debug log
-                       this.getLogger().debug(MessageFormat.format("{0}={1}", name, value)); //NOI18N
-
-                       // Set property
-                       this.setProperty(name, value);
-               }
-
-               // Trace message
-               this.getLogger().trace("EXIT!"); //NOI18N
-       }
+public class BasePizzaServiceSystem extends BaseServletSystem {
 }