mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-26 16:22:27 +03:00
52 lines
1.2 KiB
Python
52 lines
1.2 KiB
Python
#!/usr/bin/python3
|
|
# -*- coding: utf-8 -*-
|
|
# @author: İsmail BAŞARAN <ismail.basaran@tubitak.gov.tr> <basaran.ismaill@gmail.com>
|
|
|
|
|
|
class Scope(object):
|
|
"""docstring for Scope"""
|
|
|
|
scopeInstance=None
|
|
|
|
def __init__(self):
|
|
super(Scope, self).__init__()
|
|
self.customMap = {}
|
|
self.configurationManager=None
|
|
self.messageManager=None
|
|
self.logger=None
|
|
|
|
@staticmethod
|
|
def getInstance():
|
|
return scopeInstance
|
|
|
|
@staticmethod
|
|
def setInstance(scopeObj):
|
|
global scopeInstance
|
|
scopeInstance = scopeObj
|
|
|
|
def getCustomMap(self):
|
|
return self.customMap
|
|
|
|
def putCustomMap(self,name,value):
|
|
self.custom[str(name)]=value
|
|
|
|
def getCustomParam(self,name):
|
|
return self.customMap[str(name)]
|
|
|
|
def getConfigurationManager(self):
|
|
return self.configurationManager
|
|
|
|
def setConfigurationManager(self,configurationManager):
|
|
self.configurationManager = configurationManager
|
|
|
|
def getLogger(self):
|
|
return self.logger
|
|
|
|
def setLogger(self,logger):
|
|
self.logger = logger
|
|
|
|
def getMessageManager(self):
|
|
return self.messageManager
|
|
|
|
def setMessageManager(self,messageManager):
|
|
self.messageManager = messageManager
|