const mixinafIoc::Registry
afIoc::Registry
The registry of IoC services.
- autobuild
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
- create instance via ctor marked with
- dependencyByType
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
abstract Obj injectIntoFields(Obj service)
Injects services and dependencies into fields (of all visibilities) marked with
@Inject
.- serviceById
abstract Obj serviceById(Str serviceId)
Obtains a service via its unique service id.
- shutdown
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.
- startup
abstract This startup()
Invoke to execute all contributions to the RegistryStartup service.