KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > server > deployment > CustomPortalWebApp


1 /*****************************************
2  * *
3  * JBoss Portal: The OpenSource Portal *
4  * *
5  * Distributable under LGPL license. *
6  * See terms of license at gnu.org. *
7  * *
8  *****************************************/

9 package org.jboss.portal.server.deployment;
10
11 import javax.servlet.ServletContext JavaDoc;
12
13 /**
14  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
15  * @version $Revision: 1.2 $
16  */

17 public class CustomPortalWebApp extends PortalWebApp
18 {
19
20    private ServletContext JavaDoc ctx;
21    private ClassLoader JavaDoc classLoader;
22
23
24    public CustomPortalWebApp(ServletContext JavaDoc ctx, ClassLoader JavaDoc classLoader)
25    {
26       super(null);
27       this.ctx = ctx;
28       this.classLoader = classLoader;
29    }
30
31    public void instrument() throws Exception JavaDoc
32    {
33       // Do nothing
34
}
35
36    public String JavaDoc getContextPath()
37    {
38       return "/handleMetaDataEvent";
39    }
40
41    public ClassLoader JavaDoc getClassLoader()
42    {
43       return classLoader;
44    }
45
46    public ServletContext JavaDoc getServletContext()
47    {
48       return ctx;
49    }
50 }
51
Popular Tags