KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jmanage > core > alert > delivery > ConsoleAlerts


1 /**
2 * Copyright (c) 2004-2005 jManage.org
3 *
4 * This is a free software; you can redistribute it and/or
5 * modify it under the terms of the license at
6 * http://www.jmanage.org.
7 *
8 * Unless required by applicable law or agreed to in writing, software
9 * distributed under the License is distributed on an "AS IS" BASIS,
10 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 * See the License for the specific language governing permissions and
12 * limitations under the License.
13 */

14 package org.jmanage.core.alert.delivery;
15
16 import org.jmanage.core.alert.AlertInfo;
17 import org.jmanage.core.util.CoreUtils;
18
19 import java.util.*;
20 import java.beans.XMLEncoder JavaDoc;
21 import java.beans.XMLDecoder JavaDoc;
22 import java.io.*;
23
24 /**
25  *
26  * Date: Aug 2, 2005
27  * @author Rakesh Kalra
28  */

29 public class ConsoleAlerts extends PersistedAlerts{
30
31     private static final String JavaDoc CONSOLE_ALERTS_FILE =
32             CoreUtils.getDataDir() + File.separator + "console-alerts.xml";
33
34     private static final ConsoleAlerts instance = new ConsoleAlerts();
35
36     public static ConsoleAlerts getInstance(){
37         return instance;
38     }
39
40     private ConsoleAlerts(){}
41
42     protected String JavaDoc getPersistedFileName() {
43         return CONSOLE_ALERTS_FILE;
44     }
45 }
46
Popular Tags