Ticket #594 (closed Enhancement: fixed)

Opened 11 years ago

Last modified 11 years ago

Plugin framework: server-side plugin shutdown() hook

Reported by: jri Owned by: jri
Priority: Major Milestone: Release 4.2
Component: DeepaMehta Standard Distribution Version: 4.1.3
Keywords: Cc: dgf, Malte, JuergeN
Complexity: 2 Area: Application Framework / API
Module: deepamehta-core

Description

Analogous to the server-side plugin init() hook there should be a shutdown() hook. It would be triggered when OSGi stops a plugin. This would be required by plugin which need to free resources allocated in init().

Actually it is required by the DM4 WebSockets? plugin:
https://github.com/jri/dm4-websockets

Change History

comment:1 Changed 11 years ago by jri

  • Status changed from new to accepted

comment:2 Changed 11 years ago by Jörg Richter

  • Status changed from accepted to closed
  • Resolution set to fixed

Core: server-side plugin shutdown() hook (#594).

Plugins can use a new hook:

@Override
public void shutdown() {
    ...
}

It is triggered when OSGi stops a plugin.

Close #594.

Note: See TracTickets for help on using tickets.