catalyst_builder library

Classes

EnhanceableProvider
Describes a class for creating a ServiceProvider with additional services and parameters.
GenerateServiceProvider
Mark the file which contains this annotation as the entry point.
Inject
Inject a specific parameter or a list of services with a specific tag. You can only use one property.
LazyServiceDescriptor<T>
A description of a lazy loaded service
Parameter
Provide an alternative parameter binding
Preload
Mark a singleton service as preloaded. Preload means that an instance of the service is created inside the ServiceProvider.boot.
Service
This class represents a service that is registered in the ServiceProvider.
ServiceDescriptor<T>
This class is used for describing services in the service provider.
ServiceMap
This annotation can be used to create services without adding the @Service annotation to the service itself.
ServiceProvider
Describes a simple ServiceProvider
ServiceRegistry
Describes a class for registering services

Enums

ServiceLifetime
Describes the lifetime of a service.

Typedefs

ServiceFactory<T> = T Function(ServiceProvider)
A function that can produce a T. Dependencies can be resolved using the passed ServiceProvider.

Exceptions / Errors

CatalystBuilderException
A base class for CatalystBuilder specific exceptions
DependencyNotFoundException
An exception that is thrown when a service of the type service was not found.
ProviderAlreadyBootedException
An exception that is thrown when boot is called on a already booted ServiceProvider.
ProviderNotBootedException
An exception that is thrown when resolving services on a not booted ServiceProvider.
ServiceNotFoundException
An exception that is thrown when a service of the type service was not found.