1 9 package org.jboss.portal.server.deployment; 10 11 import javax.servlet.ServletContext ; 12 13 17 public class CustomPortalWebApp extends PortalWebApp 18 { 19 20 private ServletContext ctx; 21 private ClassLoader classLoader; 22 23 24 public CustomPortalWebApp(ServletContext ctx, ClassLoader classLoader) 25 { 26 super(null); 27 this.ctx = ctx; 28 this.classLoader = classLoader; 29 } 30 31 public void instrument() throws Exception 32 { 33 } 35 36 public String getContextPath() 37 { 38 return "/handleMetaDataEvent"; 39 } 40 41 public ClassLoader getClassLoader() 42 { 43 return classLoader; 44 } 45 46 public ServletContext getServletContext() 47 { 48 return ctx; 49 } 50 } 51 | Popular Tags |