KickJava   Java API By Example, From Geeks To Geeks.

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


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 /**
12  * @jmx.mbean
13  * @jboss.xmbean
14  *
15  * The role of this object is to modify the web application so it is possible
16  * to invoke it by request distpatching.
17  *
18  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
19  * @version $Revision: 1.2 $
20  */

21 public class WebAppEnhancer extends WebAppIntercepter
22 {
23
24    protected void deploy(PortalWebApp jwa)
25    {
26       try
27       {
28          jwa.instrument();
29       }
30       catch (Exception JavaDoc e)
31       {
32          log.error("Cannot instrument the web application", e);
33       }
34    }
35
36    protected void undeploy(PortalWebApp jwa)
37    {
38    }
39 }
40
Popular Tags