KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > barracuda > examples > SampleApplicationGateway


1 /*
2  * Copyright (C) 2003 Christian Cryder [christianc@granitepeaks.com]
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  * $Id: SampleApplicationGateway.java,v 1.10 2004/02/01 05:16:28 christianc Exp $
19  */

20 package org.enhydra.barracuda.examples;
21
22 import java.io.*;
23 import java.util.*;
24 import java.net.*;
25 import javax.servlet.*;
26 import javax.servlet.http.*;
27
28 import org.enhydra.barracuda.core.event.*;
29 import org.enhydra.barracuda.plankton.srv.*;
30 //import org.enhydra.barracuda.examples.ex1.*;
31
//import org.enhydra.barracuda.examples.ex2.*;
32
import org.enhydra.barracuda.examples.ex3.*;
33 //import org.enhydra.barracuda.examples.ex1.LocalUtilities;
34

35 /**
36  * <p>This is the gateway for the EventHandler7 apps. Right now,
37  * this is just the Simple Login app (LoginGateway). If there
38  * were other apps that needed to use the gateway, we'd add them
39  * here as well.
40  *
41  * <p>You might want to look at the <a HREF="simple_login.gif">UML Class
42  * diagram for the Simple Login app.</a> or check out
43  * <a HREF="simple_login_app.html">Understanding the Simple Login App</a>
44  */

45 public class SampleApplicationGateway extends ApplicationGateway {
46
47     //-------------------- ApplicationGateway --------------------
48
/**
49      * Perform any local initialization (this is where you should
50      * add any other known EventGateways)
51      */

52 //csc_100901.1 public void initializeLocal(ServletConfig config) {
53
public void initializeLocal() {
54         //specify the event gateways
55
this.specifyEventGateways(new GlobalUtilities());
56 // this.specifyEventGateways(new LoginGateway());
57
this.specifyEventGateways(new TestScreen());
58     }
59 }
60
61
Popular Tags