(no commit message)
authorerik <erik@77661180-640e-0410-b3a8-9f9b13e6d0e0>
Thu, 8 Feb 2007 12:48:40 +0000 (12:48 +0000)
committererik <erik@77661180-640e-0410-b3a8-9f9b13e6d0e0>
Thu, 8 Feb 2007 12:48:40 +0000 (12:48 +0000)
trunk/mythtv/src/main/java/org/wamblee/mythtv/Application.java [new file with mode: 0644]
trunk/mythtv/src/main/java/org/wamblee/mythtv/MythtvBeanFactory.java [new file with mode: 0644]
trunk/mythtv/src/main/java/org/wamblee/mythtv/MythtvHibernateMappings.java [new file with mode: 0644]

diff --git a/trunk/mythtv/src/main/java/org/wamblee/mythtv/Application.java b/trunk/mythtv/src/main/java/org/wamblee/mythtv/Application.java
new file mode 100644 (file)
index 0000000..d213563
--- /dev/null
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2006 the original author or authors.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */ 
+
+package org.wamblee.mythtv;
+
+import javax.servlet.ServletContextEvent;
+import javax.servlet.ServletContextListener;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.wamblee.general.BeanKernel;
+
+/**
+ *f 
+ */
+public class Application implements ServletContextListener {
+    private static final Log LOG = LogFactory.getLog(Application.class);
+    
+    /* (non-Javadoc)
+     * @see javax.servlet.ServletContextListener#contextInitialized(javax.servlet.ServletContextEvent)
+     */
+    public void contextInitialized(ServletContextEvent arg0) {
+        LOG.info("initializing");   
+        BeanKernel.getBeanFactory();
+    }
+
+
+    /* (non-Javadoc)
+     * @see javax.servlet.ServletContextListener#contextDestroyed(javax.servlet.ServletContextEvent)
+     */
+    public void contextDestroyed(ServletContextEvent arg0) {
+        LOG.info("terminating");
+    }
+}
diff --git a/trunk/mythtv/src/main/java/org/wamblee/mythtv/MythtvBeanFactory.java b/trunk/mythtv/src/main/java/org/wamblee/mythtv/MythtvBeanFactory.java
new file mode 100644 (file)
index 0000000..f29911d
--- /dev/null
@@ -0,0 +1,34 @@
+/*
+ * Copyright 2005 the original author or authors.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */ 
+package org.wamblee.mythtv;
+import org.wamblee.general.SpringBeanFactory;
+
+
+/**
+ * Bean factory for the crawler application. 
+ */
+public class MythtvBeanFactory extends SpringBeanFactory {
+    private static final String SELECTOR_NAME = "beanRefContext.xml";
+    private static final String FACTORY_NAME = "mythtv";
+    
+    /**
+     * Constructs the bean factory. 
+     *
+     */
+    public MythtvBeanFactory() {
+        super(SELECTOR_NAME, FACTORY_NAME);
+    }
+}
diff --git a/trunk/mythtv/src/main/java/org/wamblee/mythtv/MythtvHibernateMappings.java b/trunk/mythtv/src/main/java/org/wamblee/mythtv/MythtvHibernateMappings.java
new file mode 100644 (file)
index 0000000..b555fb5
--- /dev/null
@@ -0,0 +1,29 @@
+/*
+ * Copyright 2006 the original author or authors.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */ 
+
+package org.wamblee.mythtv;
+
+import org.wamblee.persistence.hibernate.HibernateMappingFiles;
+
+/**
+ * 
+ */
+public class MythtvHibernateMappings extends HibernateMappingFiles {
+
+    public MythtvHibernateMappings() { 
+        // Empty
+    }
+}