cpl.application¶
cpl.application.application_abc module¶
-
class
cpl.application.application_abc.
ApplicationABC
(config: cpl.configuration.configuration_abc.ConfigurationABC, services: cpl.dependency_injection.service_provider_abc.ServiceProviderABC)¶ Bases:
abc.ABC
-
abstract
configure
()¶ Prepare the application :return:
-
abstract
main
()¶ Custom entry point :return:
-
run
()¶ Entry point :return:
-
abstract
cpl.application.application_builder module¶
-
class
cpl.application.application_builder.
ApplicationBuilder
(app: Type[cpl.application.application_abc.ApplicationABC])¶ Bases:
cpl.application.application_builder_abc.ApplicationBuilderABC
-
build
() → cpl.application.application_abc.ApplicationABC¶ Creates application host and runtime :return:
-
use_startup
(startup: Type[cpl.application.startup_abc.StartupABC])¶ Sets the used startup class :param startup: :return:
-
cpl.application.application_builder_abc module¶
-
class
cpl.application.application_builder_abc.
ApplicationBuilderABC
(*args)¶ Bases:
abc.ABC
-
abstract
build
() → cpl.application.application_abc.ApplicationABC¶ Creates application host and runtime :return:
-
abstract
use_startup
(startup: Type[cpl.application.startup_abc.StartupABC])¶ Sets the used startup class :param startup: :return:
-
abstract
cpl.application.startup_abc module¶
-
class
cpl.application.startup_abc.
StartupABC
(*args)¶ Bases:
abc.ABC
-
abstract
configure_configuration
() → cpl.configuration.configuration_abc.ConfigurationABC¶ Creates configuration of application :return: configuration
-
abstract
configure_services
() → cpl.dependency_injection.service_provider_abc.ServiceProviderABC¶ Creates service provider :return: service provider
-
abstract