Skip to content

Commit

Permalink
Renaming abstrac class; re-introduced old abstraction to keep the res…
Browse files Browse the repository at this point in the history
…t running(to be removed)
  • Loading branch information
giograno committed May 24, 2022
1 parent 12bb3be commit eb7feac
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions localstack/services/plugins.py
Expand Up @@ -133,7 +133,15 @@ def on_exception(self):
pass


class BaseBackendStateLifecycle(abc.ABC):
class StateLifecycle:
def retrieve_state(self):
pass

def inject_state(self, state):
pass


class BackendStateLifecycle(abc.ABC):
"""
Interface that supports the retrieval, injection and restore of the backend for services.
"""
Expand Down Expand Up @@ -166,7 +174,7 @@ def __init__(
active=False,
stop=None,
lifecycle_hook: ServiceLifecycleHook = None,
backend_state_lifecycle: BaseBackendStateLifecycle = None,
backend_state_lifecycle: BackendStateLifecycle = None,
):
self.plugin_name = name
self.start_function = start
Expand Down

0 comments on commit eb7feac

Please sign in to comment.