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

java.io.Closable automatically gets a PreDestroy hook #104

Closed
rbygrave opened this issue May 13, 2021 · 2 comments
Closed

java.io.Closable automatically gets a PreDestroy hook #104

rbygrave opened this issue May 13, 2021 · 2 comments
Assignees
Milestone

Comments

@rbygrave
Copy link
Contributor

Currently we don't do this. For myself this does not seem intuitive. (Noting Micronaut DI also does not do this).

@rbygrave rbygrave self-assigned this May 16, 2021
@rbygrave rbygrave added this to the 6.0 milestone May 16, 2021
@rbygrave
Copy link
Contributor Author

@Singleton
public class ShouldCloseAuto implements Closeable {


  /**
   *  Treated as a PreDestroy method
   */
  @Override
  public void close() {
    ...
  }

 
}

@rbygrave
Copy link
Contributor Author

Change via:
ab94530

@rbygrave rbygrave changed the title Should a bean that implements Closable / AutoClosable automatically get a PreDestroy hook? java.io.Closable automatically gets a PreDestroy hook May 23, 2021
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

No branches or pull requests

1 participant