Skip to content

Commit

Permalink
Adding Javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
Sorna-Sarathi-N authored and mickaelistria committed May 22, 2024
1 parent fc53df0 commit 30bc1dc
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ public void intialize() {
eventBroker.subscribe(IThemeEngine.Events.THEME_CHANGED, eventHandler);
}

/**
* Unsubscribes the {@code eventHandler} from the {@code eventBroker} to cleanup the resources
*
* Assumption : Both {@code eventHandler} and {@code eventBroker} are initialized and non null
*/
@PreDestroy
public void cleanUp() {
eventBroker.unsubscribe(eventHandler);
Expand Down

0 comments on commit 30bc1dc

Please sign in to comment.