comparison src/org/eclipse/jetty/server/handler/ContextHandler.java @ 830:7c737c376bc3

remove Loader
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 15 Sep 2016 18:30:38 -0600
parents 8579194add85
children 83765eb09bef
comparison
equal deleted inserted replaced
829:dfa742c663f9 830:7c737c376bc3
70 import org.eclipse.jetty.server.Request; 70 import org.eclipse.jetty.server.Request;
71 import org.eclipse.jetty.server.Server; 71 import org.eclipse.jetty.server.Server;
72 import org.eclipse.jetty.util.Attributes; 72 import org.eclipse.jetty.util.Attributes;
73 import org.eclipse.jetty.util.AttributesMap; 73 import org.eclipse.jetty.util.AttributesMap;
74 import org.eclipse.jetty.util.LazyList; 74 import org.eclipse.jetty.util.LazyList;
75 import org.eclipse.jetty.util.Loader;
76 import org.eclipse.jetty.util.StringUtil; 75 import org.eclipse.jetty.util.StringUtil;
77 import org.eclipse.jetty.util.TypeUtil; 76 import org.eclipse.jetty.util.TypeUtil;
78 import org.eclipse.jetty.util.URIUtil; 77 import org.eclipse.jetty.util.URIUtil;
79 import org.eclipse.jetty.util.component.AggregateLifeCycle; 78 import org.eclipse.jetty.util.component.AggregateLifeCycle;
80 import org.eclipse.jetty.util.component.Dumpable; 79 import org.eclipse.jetty.util.component.Dumpable;
1514 1513
1515 return b.toString(); 1514 return b.toString();
1516 } 1515 }
1517 1516
1518 /* ------------------------------------------------------------ */ 1517 /* ------------------------------------------------------------ */
1519 public synchronized Class<?> loadClass(String className) throws ClassNotFoundException
1520 {
1521 if (className == null)
1522 return null;
1523
1524 if (_classLoader == null)
1525 return Loader.loadClass(this.getClass(),className);
1526
1527 return _classLoader.loadClass(className);
1528 }
1529
1530 /* ------------------------------------------------------------ */
1531 public void addLocaleEncoding(String locale, String encoding) 1518 public void addLocaleEncoding(String locale, String encoding)
1532 { 1519 {
1533 if (_localeEncodingMap == null) 1520 if (_localeEncodingMap == null)
1534 _localeEncodingMap = new HashMap<String, String>(); 1521 _localeEncodingMap = new HashMap<String, String>();
1535 _localeEncodingMap.put(locale,encoding); 1522 _localeEncodingMap.put(locale,encoding);