Improved service providing and app hosting
This commit is contained in:
@@ -1,15 +1,14 @@
|
||||
from abc import abstractmethod
|
||||
from abc import abstractmethod, ABC
|
||||
from collections import Callable
|
||||
from typing import Type
|
||||
|
||||
from sh_edraft.configuration.base.configuration_model_base import ConfigurationModelBase
|
||||
from sh_edraft.service.base.service_base import ServiceBase
|
||||
|
||||
|
||||
class ConfigurationBase(ServiceBase):
|
||||
class ConfigurationBase(ABC):
|
||||
|
||||
@abstractmethod
|
||||
def __init__(self):
|
||||
ServiceBase.__init__(self)
|
||||
def __init__(self): pass
|
||||
|
||||
@property
|
||||
@abstractmethod
|
||||
@@ -19,4 +18,7 @@ class ConfigurationBase(ServiceBase):
|
||||
def add_config_by_type(self, key_type: type, value: object): pass
|
||||
|
||||
@abstractmethod
|
||||
def get_config_by_type(self, search_type: ConfigurationModelBase) -> Callable[ConfigurationModelBase]: pass
|
||||
def get_config_by_type(self, search_type: Type[ConfigurationModelBase]) -> Callable[ConfigurationModelBase]: pass
|
||||
|
||||
@abstractmethod
|
||||
def create(self): pass
|
||||
|
Reference in New Issue
Block a user