1 9 package org.jboss.portal.server.deployment; 10 11 import java.net.URL ; 12 13 import javax.servlet.ServletContext ; 14 15 import org.apache.log4j.Logger; 16 import org.jboss.web.WebApplication; 17 18 24 public abstract class PortalWebApp 25 { 26 27 28 protected final Logger log = Logger.getLogger(getClass()); 29 30 31 protected final WebApplication webApp; 32 33 34 protected final URL url; 35 36 39 protected PortalWebApp(WebApplication webApp) 40 { 41 this.webApp = webApp; 42 this.url = webApp.getURL(); 43 } 44 45 48 public abstract void instrument() throws Exception ; 49 50 53 public URL getURL() 54 { 55 return url; 56 } 57 58 61 public abstract ClassLoader getClassLoader(); 62 63 66 public abstract String getContextPath(); 67 68 71 public abstract ServletContext getServletContext(); 72 } 73 | Popular Tags |