Komplettes G-Earth Paket inkl. JRE, Extensions und Tools. Extensions: - G-BuildTools, G-Click Ultimate, G-Loader, G-Manipulate - G-Presets, G-Translator, G-Trigger, G-itemViewer - Market Utils, Packet Info Explorer, Plants - RandomRoomVisitor, RoomLogger, Sanbovir Photo Inspector - SpyFriends, WallAligner, XabboScripter, xabbo
26 lines
782 B
Java
26 lines
782 B
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*/
|
|
package javax.websocket;
|
|
|
|
import java.util.ServiceLoader;
|
|
import javax.websocket.WebSocketContainer;
|
|
|
|
public abstract class ContainerProvider {
|
|
public static WebSocketContainer getWebSocketContainer() {
|
|
WebSocketContainer wsc = null;
|
|
for (ContainerProvider impl : ServiceLoader.load(ContainerProvider.class)) {
|
|
wsc = impl.getContainer();
|
|
if (wsc == null) continue;
|
|
return wsc;
|
|
}
|
|
if (wsc == null) {
|
|
throw new RuntimeException("Could not find an implementation class.");
|
|
}
|
|
throw new RuntimeException("Could not find an implementation class with a non-null WebSocketContainer.");
|
|
}
|
|
|
|
protected abstract WebSocketContainer getContainer();
|
|
}
|
|
|