29 lines
703 B
Python
29 lines
703 B
Python
from kernel.application.view.application import Application
|
|
from kernel.application.view.rabbitmq import RabbitMQ
|
|
from kernel.application.view.redis import Redis
|
|
|
|
|
|
class Configuration():
|
|
__application: Application
|
|
__rabbitmq: RabbitMQ
|
|
__redis: Redis
|
|
|
|
def __init__(
|
|
self,
|
|
application: Application,
|
|
rabbitmq: RabbitMQ,
|
|
redis: Redis,
|
|
) -> None:
|
|
self.__application = application
|
|
self.__rabbitmq = rabbitmq
|
|
self.__redis = redis
|
|
|
|
def application(self) -> Application:
|
|
return self.__application
|
|
|
|
def rabbitmq(self) -> RabbitMQ:
|
|
return self.__rabbitmq
|
|
|
|
def redis(self) -> Redis:
|
|
return self.__redis
|