Island: Add class docstrings for IFileRepository decorators

This commit is contained in:
Mike Salvatore 2022-07-05 11:24:34 -04:00
parent a8b54f69f9
commit 545f35710f
3 changed files with 12 additions and 0 deletions

View File

@ -7,6 +7,10 @@ from . import IFileRepository
class FileRepositoryCachingDecorator(IFileRepository):
"""
An IFileRepository decorator that provides caching for other IFileRepositories.
"""
def __init__(self, file_repository: IFileRepository):
self._file_repository = file_repository

View File

@ -6,6 +6,10 @@ from . import IFileRepository
class FileRepositoryLockingDecorator(IFileRepository):
"""
An IFileRepository decorator that makes other IFileRepositories thread-safe.
"""
def __init__(self, file_repository: IFileRepository):
self._file_repository = file_repository
self._rwlock = rwlock.RWLockFair()

View File

@ -7,6 +7,10 @@ logger = logging.getLogger(__name__)
class FileRepositoryLoggingDecorator(IFileRepository):
"""
An IFileRepository decorator that provides debug logging for other IFileRepositories.
"""
def __init__(self, file_repository: IFileRepository):
self._file_repository = file_repository