(no commit message)
authorerik <erik@77661180-640e-0410-b3a8-9f9b13e6d0e0>
Sun, 30 Apr 2006 19:02:23 +0000 (19:02 +0000)
committererik <erik@77661180-640e-0410-b3a8-9f9b13e6d0e0>
Sun, 30 Apr 2006 19:02:23 +0000 (19:02 +0000)
crawler/kiss/conf/kiss/notification.xml [new file with mode: 0644]
crawler/kiss/src/crawler-standalone.xml [new file with mode: 0644]
crawler/kiss/src/org/wamblee/crawler/kiss/main/StandaloneCrawlerBeanFactory.java [new file with mode: 0644]

diff --git a/crawler/kiss/conf/kiss/notification.xml b/crawler/kiss/conf/kiss/notification.xml
new file mode 100644 (file)
index 0000000..29148da
--- /dev/null
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
+
+<beans>
+    
+  <!-- Mail server configuration --> 
+  <bean id="org.wamblee.crawler.kiss.notification.MailServer"
+      class="org.wamblee.crawler.kiss.notification.MailServer">
+      <constructor-arg><value>falcon</value></constructor-arg>
+      <constructor-arg><value type="int">25</value></constructor-arg>
+      <constructor-arg><null/></constructor-arg> <!-- username -->
+      <constructor-arg><null/></constructor-arg> <!-- password --> 
+  </bean>
+  
+  <bean id="org.wamblee.xml.ClasspathUriResolver"
+      class="org.wamblee.xml.ClasspathUriResolver">
+  </bean>
+  
+  <bean id="org.wamblee.xml.XslTransformer"
+      class="org.wamblee.xml.XslTransformer">
+      <constructor-arg><ref local="org.wamblee.xml.ClasspathUriResolver"/></constructor-arg>
+  </bean>
+  
+  <bean id="org.wamblee.crawler.kiss.notification.Notifier"
+      class="org.wamblee.crawler.kiss.notification.MailNotifier">
+      <constructor-arg><value>kiss@brakkee.org</value></constructor-arg>
+      <constructor-arg><value>erik@brakkee.org</value></constructor-arg>
+      <constructor-arg><value>Recording summary for today</value></constructor-arg>
+      <constructor-arg><value>reportToHtml.xsl</value></constructor-arg>
+      <constructor-arg><value>reportToText.xsl</value></constructor-arg>
+      <constructor-arg><ref local="org.wamblee.crawler.kiss.notification.MailServer"/></constructor-arg>
+      <constructor-arg><ref local="org.wamblee.xml.XslTransformer"/></constructor-arg>
+  </bean>
+</beans> 
\ No newline at end of file
diff --git a/crawler/kiss/src/crawler-standalone.xml b/crawler/kiss/src/crawler-standalone.xml
new file mode 100644 (file)
index 0000000..e19c924
--- /dev/null
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
+ <beans> 
+     
+     <bean id="crawlerStandalone"
+         class="org.springframework.context.support.ClassPathXmlApplicationContext">
+         <constructor-arg>
+             <list>
+                <value>file:notification.xml</value>
+             </list>
+         </constructor-arg>
+     </bean>
+     
+ </beans>
\ No newline at end of file
diff --git a/crawler/kiss/src/org/wamblee/crawler/kiss/main/StandaloneCrawlerBeanFactory.java b/crawler/kiss/src/org/wamblee/crawler/kiss/main/StandaloneCrawlerBeanFactory.java
new file mode 100644 (file)
index 0000000..ad43c0a
--- /dev/null
@@ -0,0 +1,36 @@
+/*
+ * 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.crawler.kiss.main;
+
+import org.wamblee.general.SpringBeanFactory;
+
+/**
+ * Bean factory used for the standalone crawler application. 
+ */
+public class StandaloneCrawlerBeanFactory extends SpringBeanFactory {
+    
+    private static final String LOCATOR = "crawler-standalone.xml";
+    private static final String FACTORY_NAME = "crawlerStandalone";
+
+    /**
+     * Constructs the factory.
+     *
+     */
+    public StandaloneCrawlerBeanFactory() { 
+        super(LOCATOR, FACTORY_NAME);
+    }
+}
\ No newline at end of file