li.rudin.rt.api.RT Maven / Gradle / Ivy
package li.rudin.rt.api;
import java.util.Iterator;
import java.util.ServiceLoader;
import li.rudin.rt.api.spi.RTServerProvider;
public class RT
{
static
{
Iterator it = ServiceLoader.load(RTServerProvider.class).iterator();
if (it.hasNext())
provider = it.next();
else
throw new ExceptionInInitializerError("No RTServerProvider found (is rt-core in the classpath?)");
}
private static final RTServerProvider provider;
/**
* Returns the rt serverprovider from the spi
* @return
*/
public static RTServerProvider getProvider()
{
return provider;
}
/**
* The default id for the RT Handler
*/
public static final String DEFAULT_ID = "default";
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy