You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/10/28 13:44:53 UTC
[GitHub] [dubbo] kylixs opened a new pull request #9155: [3.0] Support destroy scope bean and spi extension instance
kylixs opened a new pull request #9155:
URL: https://github.com/apache/dubbo/pull/9155
## What is the purpose of the change
Support destroy scope bean and spi extension instance
## Usage
Scope bean and SPI extension can implement `org.apache.dubbo.common.resource.Disposable`, then will be call `destroy()` method when scope model is destroyed.
```java
public class FooBean implement Disposable {
public void destroy() {
....
}
}
```
```java
public class MyFooSPI implement FooSPI, Disposable {
public void destroy() {
....
}
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
[GitHub] [dubbo] chickenlj merged pull request #9155: [3.0] Support destroy scope bean and spi extension instance
Posted by GitBox <gi...@apache.org>.
chickenlj merged pull request #9155:
URL: https://github.com/apache/dubbo/pull/9155
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org