1 25 package org.ofbiz.service; 26 27 import java.util.Collection ; 28 29 import org.ofbiz.entity.GenericDelegator; 30 31 38 public class WebAppDispatcher extends GenericDispatcher { 39 40 public static final String module = WebAppDispatcher.class.getName(); 41 42 public WebAppDispatcher(String name, GenericDelegator delegator, Collection readerURLs) { 43 this(name, delegator, readerURLs, null); 44 } 45 46 public WebAppDispatcher(String name, GenericDelegator delegator, Collection readerURLs, ClassLoader loader) { 47 if (loader == null) { 48 try { 49 loader = Thread.currentThread().getContextClassLoader(); 50 } catch (SecurityException e) { 51 loader = this.getClass().getClassLoader(); 52 } 53 } 54 55 DispatchContext dc = new DispatchContext(name, readerURLs, loader, null); 56 init(name, delegator, dc); 57 } 58 59 public WebAppDispatcher(DispatchContext ctx, GenericDelegator delegator) { 60 super(ctx, delegator); 61 } 62 63 } 64 65 | Popular Tags |