forked from p34709852/monkey
Island: Add class docstrings for IFileRepository decorators
This commit is contained in:
parent
a8b54f69f9
commit
545f35710f
|
@ -7,6 +7,10 @@ from . import IFileRepository
|
||||||
|
|
||||||
|
|
||||||
class FileRepositoryCachingDecorator(IFileRepository):
|
class FileRepositoryCachingDecorator(IFileRepository):
|
||||||
|
"""
|
||||||
|
An IFileRepository decorator that provides caching for other IFileRepositories.
|
||||||
|
"""
|
||||||
|
|
||||||
def __init__(self, file_repository: IFileRepository):
|
def __init__(self, file_repository: IFileRepository):
|
||||||
self._file_repository = file_repository
|
self._file_repository = file_repository
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,10 @@ from . import IFileRepository
|
||||||
|
|
||||||
|
|
||||||
class FileRepositoryLockingDecorator(IFileRepository):
|
class FileRepositoryLockingDecorator(IFileRepository):
|
||||||
|
"""
|
||||||
|
An IFileRepository decorator that makes other IFileRepositories thread-safe.
|
||||||
|
"""
|
||||||
|
|
||||||
def __init__(self, file_repository: IFileRepository):
|
def __init__(self, file_repository: IFileRepository):
|
||||||
self._file_repository = file_repository
|
self._file_repository = file_repository
|
||||||
self._rwlock = rwlock.RWLockFair()
|
self._rwlock = rwlock.RWLockFair()
|
||||||
|
|
|
@ -7,6 +7,10 @@ logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class FileRepositoryLoggingDecorator(IFileRepository):
|
class FileRepositoryLoggingDecorator(IFileRepository):
|
||||||
|
"""
|
||||||
|
An IFileRepository decorator that provides debug logging for other IFileRepositories.
|
||||||
|
"""
|
||||||
|
|
||||||
def __init__(self, file_repository: IFileRepository):
|
def __init__(self, file_repository: IFileRepository):
|
||||||
self._file_repository = file_repository
|
self._file_repository = file_repository
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue