cpl_core.application

cpl_core.application.application_abc

class cpl_core.application.application_abc.ApplicationABC(config: cpl_core.configuration.configuration_abc.ConfigurationABC, services: cpl_core.dependency_injection.service_provider_abc.ServiceProviderABC)

Bases: abc.ABC

ABC for the Application class

config: cpl_core.configuration.configuration_abc.ConfigurationABC

Contains object loaded from appsettings

services: cpl_core.dependency_injection.service_provider_abc.ServiceProviderABC

Contains instances of prepared objects

abstract configure()

Configure the application

Called by cpl_core.application.application_abc.ApplicationABC.run

abstract main()

Custom entry point

Called by cpl_core.application.application_abc.ApplicationABC.run

run()

Entry point

Called by custom Application.main

cpl_core.application.application_builder

class cpl_core.application.application_builder.ApplicationBuilder(app: Type[cpl_core.application.application_abc.ApplicationABC])

Bases: cpl_core.application.application_builder_abc.ApplicationBuilderABC

This is class is used to build a object of cpl_core.application.application_abc.ApplicationABC

build() cpl_core.application.application_abc.ApplicationABC

Creates custom application object

use_extension(extension: Type[cpl_core.application.application_extension_abc.ApplicationExtensionABC])
use_startup(startup: Type[cpl_core.application.startup_abc.StartupABC])

Sets the custom startup class to use

startup: Type[cpl_core.application.startup_abc.StartupABC]

Startup class to use

cpl_core.application.application_builder_abc

class cpl_core.application.application_builder_abc.ApplicationBuilderABC(*args)

Bases: abc.ABC

ABC for the cpl_core.application.application_builder.ApplicationBuilder

abstract build() cpl_core.application.application_abc.ApplicationABC

Creates custom application object

abstract use_startup(startup: Type[cpl_core.application.startup_abc.StartupABC])

Sets the custom startup class to use

startup: Type[cpl_core.application.startup_abc.StartupABC]

Startup class to use