Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix issue: event listener is being registered multiple times #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zirkelc
Copy link

@zirkelc zirkelc commented Dec 9, 2022

I experienced an issue in a multi databases setup:

When Neo4j starts it creates only one instance of MyExtensionFactory. Then it starts each database, and each database calls the MyExtensionFactory.newInstance method. However, the database is stored on the object property MyExtensionFactory.db and access within the subclass MyAdapter.start method, which means it accesses a property from a parent object that changes this property on every MyExtensionFactory.newInstance call.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant