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

Singleton invalidation #133

Open
Tishka17 opened this issue Apr 18, 2024 · 3 comments
Open

Singleton invalidation #133

Tishka17 opened this issue Apr 18, 2024 · 3 comments
Labels
draft Needs information or coordination with other issues enhancement New feature or request

Comments

@Tishka17
Copy link
Collaborator

container.invalidate(Pool) to remove an object from cache so it can be recreated

@Tishka17
Copy link
Collaborator Author

it's a dangerous call because there could be created objects which rely on the one we are trying to invaldate. Also, it's not clear whether we need to call finalizer or not (probably we can just add a parameter)

@Tishka17 Tishka17 added enhancement New feature or request draft Needs information or coordination with other issues labels Apr 18, 2024
@Tishka17
Copy link
Collaborator Author

a) close must clean all except context data so the container will be reused
b) APP-container can be recreated from RUNTIME one

@Tishka17
Copy link
Collaborator Author

Since version 1.2 you can call close to cleanup all dependencies and continue using same container

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
draft Needs information or coordination with other issues enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant