1 package org.exoplatform.services.portletcontainer.impl.portletAPIImp; 2 3 import javax.portlet.PortletContext; 4 import javax.servlet.ServletContext ; 5 import java.net.URLClassLoader ; 6 7 11 12 19 public class PortletAPIObjectFactory { 20 21 private static PortletAPIObjectFactory ourInstance; 22 23 public synchronized static PortletAPIObjectFactory getInstance() { 24 if (ourInstance == null) { 25 ourInstance = new PortletAPIObjectFactory(); 26 } 27 return ourInstance; 28 } 29 30 private PortletAPIObjectFactory() { 31 } 32 33 public PortletContext createPortletContext(ServletContext scontext) { 34 return new PortletContextImpl(scontext) ; 35 } 36 37 public PortletContext createPortletContext(ServletContext scontext, URLClassLoader cl) { 38 return new PortletContextImpl(scontext) ; 39 } 40 41 } | Popular Tags |