Return the default global registry implementation. The implementation used will depend on the
system property
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.