summaryrefslogtreecommitdiffstats
path: root/vaadin-app/src/ch/asynk/helloworld/Context.java
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-12-03 14:00:31 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2011-12-03 14:00:31 +0100
commit3a9a839165b735694698010a8aae1672a364e948 (patch)
treed2c33f4e1b92613c7d493e82a579f5089bef60a2 /vaadin-app/src/ch/asynk/helloworld/Context.java
parent9e255f98b2c90724a1796892bccee5986f373ef1 (diff)
downloadskeletons-3a9a839165b735694698010a8aae1672a364e948.zip
skeletons-3a9a839165b735694698010a8aae1672a364e948.tar.gz
rename vaadin-app into java-vaadin
Diffstat (limited to 'vaadin-app/src/ch/asynk/helloworld/Context.java')
-rw-r--r--vaadin-app/src/ch/asynk/helloworld/Context.java55
1 files changed, 0 insertions, 55 deletions
diff --git a/vaadin-app/src/ch/asynk/helloworld/Context.java b/vaadin-app/src/ch/asynk/helloworld/Context.java
deleted file mode 100644
index c59016d..0000000
--- a/vaadin-app/src/ch/asynk/helloworld/Context.java
+++ /dev/null
@@ -1,55 +0,0 @@
-package ch.asynk.helloworld;
-
-import java.util.Properties;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-public class Context {
- //
- private static final long serialVersionUID = 1L;
- //
- private Logger log = Logger.getLogger("ch.asynk");
- public Logger getLogger() {
- return log;
- }
- //
- private Properties props = null;
- public Properties getProps() {
- return props;
- }
- //
- private HelloWorldApp app = null;
- public HelloWorldApp getApp() {
- return app;
- }
- //
- public Context(HelloWorldApp application) {
- app = application;
- initProps();
- }
- //
- private void initProps() {
- props = new Properties();
- //
- String properties_file = "Application.properties";
- log.info("doing stuff : ");
- java.io.InputStream is = null;
- try {
- is = HelloWorldApp.class.getClassLoader().getResourceAsStream(properties_file);
- }
- catch(java.lang.Exception x) {
- log.log(Level.SEVERE,"Error loading "+properties_file+"' properties",x);
- return;
- }
- if (is!=null) {
- try {
- props.load(is);
- }
- catch (java.io.IOException e) {
- log.log(Level.SEVERE,"Error reading properties '"+properties_file+"' ",e);
- }
- } else {
- log.warning("'"+properties_file+"' file not found");
- }
- }
-}