Hi, does anyone know how to access the static initializer for an object declaration? I know the declarations are instantiated lazily, but I want to instantiate them when they are loaded on the classpath and have them register themselves with a registrar.
object Registrant {
// does not work
init { Registrar.register(this) }
}