const mixinafIoc::Registry

afIoc::Registry

The registry of IoC services.

autobuild

Source

abstract Obj autobuild(Type type)

Autobuilds an instance of the given type, resolving all dependencies:

  • create instance via ctor marked with @Inject or the ctor with the most parameters
  • inject dependencies into fields (of all visibilities) marked with @Inject
  • call any methods annotated with @PostInjection
dependencyByType

Source

abstract Obj dependencyByType(Type dependencyType)

Locates a dependency of the given type. The search takes into account inheritance of the service mixin, not the service implementation.

injectIntoFields

Source

abstract Obj injectIntoFields(Obj service)

Injects services and dependencies into fields (of all visibilities) marked with @Inject.

serviceById

Source

abstract Obj serviceById(Str serviceId)

Obtains a service via its unique service id.

shutdown

Source

abstract This shutdown()

Shuts down the Registry. Notifies all listeners that the registry has shutdown. Further method invocations on the Registry are no longer allowed, and the Registry instance should be discarded.

See RegistryShutdownHub

startup

Source

abstract This startup()

Invoke to execute all contributions to the RegistryStartup service.