const mixinafIoc::RegistryStartup

afIoc::RegistryStartup

(Service) - Contribute functions to be executed on Registry start up.

Functions need not be immutable.

Example usage:

class AppModule {

  @Contribute { serviceType=RegistryStartup# }
  static Void contributeRegistryStartup(OrderedConfig conf, MyService myService) {
    conf.add |->| {
      myService.startup()
    }
  }
}

@uses OrderedConfig of |->|