Skip to content

Commit

Permalink
NXP-29984: deprecate DefaultComponent#registerContribution and #unreg…
Browse files Browse the repository at this point in the history
…isterContribution methods
  • Loading branch information
atchertchian committed Feb 16, 2021
1 parent fb14337 commit 6971143
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,20 @@ public void unregisterExtension(Extension extension) {
setModifiedNow();
}

/**
* @deprecated since 11.5: contributions registration should use a {@link Registry}.
*/
@Deprecated(since = "11.5")
public void registerContribution(Object contribution, String xp, ComponentInstance component) {
if (contribution instanceof Descriptor) {
register(xp, (Descriptor) contribution);
}
}

/**
* @deprecated since 11.5: contributions unregistration should use a {@link Registry}.
*/
@Deprecated(since = "11.5")
public void unregisterContribution(Object contribution, String xp, ComponentInstance component) {
if (contribution instanceof Descriptor) {
unregister(xp, (Descriptor) contribution);
Expand Down

0 comments on commit 6971143

Please sign in to comment.