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

Reminder for disposal strategies for new Context system when ready #1737

Closed
Cervator opened this issue May 23, 2015 · 2 comments
Closed

Reminder for disposal strategies for new Context system when ready #1737

Cervator opened this issue May 23, 2015 · 2 comments
Assignees
Labels
Category: Performance Requests, Issues and Changes targeting performance Topic: Architecture Requests, Issues and Changes related to software architecture, programming patterns, etc.

Comments

@Cervator
Copy link
Member

Cervator commented May 23, 2015

As discussed in #1727 - a reminder for when we're ready to work more specifically on disposal with the new Context concept. Possibility of contexts going out of scope - how to dispose what they reference, if at all? Maybe make an AutoCloseable of some sort available if desired?

Sort of related: #1296 & @emanuele3d has expressed interest in learning more later

@Cervator Cervator added Topic: Architecture Requests, Issues and Changes related to software architecture, programming patterns, etc. Category: Performance Requests, Issues and Changes targeting performance labels May 23, 2015
@Cervator Cervator added this to the Alpha! milestone May 23, 2015
@immortius
Copy link
Member

In general Context can hold any sort of object, so there's no defined interface for it to hook off of for cleanup.

Possibly the Context could have special handling of anything registered that implements Closable (rather than Autoclosable which is a special case), disposing them when the context itself is disposed.

@pollend
Copy link
Member

pollend commented Jul 22, 2021

I think going forward I would like to Gestalt-DI.

https://github.com/MovingBlocks/gestalt/tree/develop/gestalt-di

@pollend pollend closed this as completed Jul 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Performance Requests, Issues and Changes targeting performance Topic: Architecture Requests, Issues and Changes related to software architecture, programming patterns, etc.
Projects
None yet
Development

No branches or pull requests

4 participants