G-Earth/Extensions/G-Translator_1.0.2/decompiled/javax/websocket/ContainerProvider.java
Administrator 368b92d87a G-Earth 1.5.4 beta 22 - Initial release
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
2026-03-16 09:45:04 +01:00

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();
}