1 9 package org.jboss.portal.server.servlet; 10 11 import javax.servlet.ServletContext ; 12 13 17 public class BootStrapContextImpl implements BootStrapContext 18 { 19 20 private ServletContext servletContext; 21 private ClassLoader classLoader; 22 23 public BootStrapContextImpl(ServletContext servletContext, ClassLoader classLoader) 24 { 25 if (servletContext == null) 26 { 27 throw new IllegalArgumentException ("Bootstrap servlet context cannot be null"); 28 } 29 if (classLoader == null) 30 { 31 throw new IllegalArgumentException ("Bootstrap classLoader context cannot be null"); 32 } 33 this.servletContext = servletContext; 34 this.classLoader = classLoader; 35 } 36 37 public ServletContext getServletContext() 38 { 39 return servletContext; 40 } 41 42 public ClassLoader getClassLoader() 43 { 44 return classLoader; 45 } 46 } 47 | Popular Tags |