revert change to the classloader used in isAvailable
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
parent
80a824854b
commit
32433b10ad
|
@ -20,6 +20,7 @@ package org.eclipse.jetty.websocket.client.config;
|
||||||
|
|
||||||
import java.util.ServiceLoader;
|
import java.util.ServiceLoader;
|
||||||
|
|
||||||
|
import org.eclipse.jetty.util.Loader;
|
||||||
import org.eclipse.jetty.webapp.AbstractConfiguration;
|
import org.eclipse.jetty.webapp.AbstractConfiguration;
|
||||||
import org.eclipse.jetty.webapp.Configuration;
|
import org.eclipse.jetty.webapp.Configuration;
|
||||||
import org.eclipse.jetty.webapp.FragmentConfiguration;
|
import org.eclipse.jetty.webapp.FragmentConfiguration;
|
||||||
|
@ -71,7 +72,7 @@ public class JettyWebSocketClientConfiguration extends AbstractConfiguration
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
return JettyWebSocketClientConfiguration.class.getClassLoader().loadClass(classname) != null;
|
return Loader.loadClass(classname) != null;
|
||||||
}
|
}
|
||||||
catch (Throwable e)
|
catch (Throwable e)
|
||||||
{
|
{
|
||||||
|
|
|
@ -20,6 +20,7 @@ package org.eclipse.jetty.websocket.server.config;
|
||||||
|
|
||||||
import java.util.ServiceLoader;
|
import java.util.ServiceLoader;
|
||||||
|
|
||||||
|
import org.eclipse.jetty.util.Loader;
|
||||||
import org.eclipse.jetty.webapp.AbstractConfiguration;
|
import org.eclipse.jetty.webapp.AbstractConfiguration;
|
||||||
import org.eclipse.jetty.webapp.Configuration;
|
import org.eclipse.jetty.webapp.Configuration;
|
||||||
import org.eclipse.jetty.webapp.FragmentConfiguration;
|
import org.eclipse.jetty.webapp.FragmentConfiguration;
|
||||||
|
@ -75,7 +76,7 @@ public class JettyWebSocketConfiguration extends AbstractConfiguration
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
return JettyWebSocketConfiguration.class.getClassLoader().loadClass(classname) != null;
|
return Loader.loadClass(classname) != null;
|
||||||
}
|
}
|
||||||
catch (Throwable e)
|
catch (Throwable e)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue