Added comments to application

This commit is contained in:
2021-03-14 16:57:20 +01:00
parent 3f56247aa7
commit c1fe8c611c
6 changed files with 82 additions and 20 deletions

View File

@@ -8,13 +8,32 @@ from cpl.dependency_injection.service_provider_abc import ServiceProviderABC
class StartupABC(ABC):
@abstractmethod
def __init__(self): pass
def __init__(self):
"""
ABC for a startup class
"""
pass
@abstractmethod
def create_application_host(self) -> ApplicationHostABC: pass
def create_application_host(self) -> ApplicationHostABC:
"""
Creates application host with specific attributes
:return: application host
"""
pass
@abstractmethod
def create_configuration(self) -> ConfigurationABC: pass
def create_configuration(self) -> ConfigurationABC:
"""
Creates configuration of application
:return: configuration
"""
pass
@abstractmethod
def create_services(self) -> ServiceProviderABC: pass
def create_services(self) -> ServiceProviderABC:
"""
Creates service provider
:return: service provider
"""
pass