Hi, does anyone know how to access the static init...
# announcements
j
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.
Copy code
object Registrant {
// does not work
  init { Registrar.register(this) }
}