public final class Spectator extends Object
spectator.api.registryClass
.Modifier and Type | Method and Description |
---|---|
static ConfigMap |
config()
Return the config implementation being used.
|
static ExtendedRegistry |
registry()
Return the default global registry implementation.
|
public static ConfigMap config()
public static ExtendedRegistry registry()
spectator.api.registryClass
. If not set or set to
service-loader
the registry class will be determined by scanning the classpath using
ServiceLoader
. Otherwise an instance of the classname specified will be
used. If a registry cannot be loaded the fallback is to use the DefaultRegistry
.
When spectator.api.propagateWarnings
is set to true
and an explicit class name
is specified a RuntimeException
will be thrown if the specified class cannot
be used.