parent
df6a46e380
commit
936fd09a18
|
@ -44,7 +44,7 @@ public interface WebSocketServletFactory
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Class<? extends WebSocketServletFactory> wsClazz =
|
Class<? extends WebSocketServletFactory> wsClazz =
|
||||||
(Class<? extends WebSocketServletFactory>) Class.forName(DEFAULT_IMPL);
|
(Class<? extends WebSocketServletFactory>) Class.forName(DEFAULT_IMPL,true,Thread.currentThread().getContextClassLoader());
|
||||||
Constructor<? extends WebSocketServletFactory> ctor = wsClazz.getDeclaredConstructor(new Class<?>[]{ServletContext.class, WebSocketPolicy.class});
|
Constructor<? extends WebSocketServletFactory> ctor = wsClazz.getDeclaredConstructor(new Class<?>[]{ServletContext.class, WebSocketPolicy.class});
|
||||||
return ctor.newInstance(ctx, policy);
|
return ctor.newInstance(ctx, policy);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue