Skip to content

Commit

Permalink
[#1370] Operator fails on startup
Browse files Browse the repository at this point in the history
Rework AgreementDomainRegistry
  • Loading branch information
ruspl-afed committed May 23, 2024
1 parent 13d66e5 commit 011c801
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" deactivate="deactivate" name="org.eclipse.passage.loc.internal.agreements.core.AgreementDomainRegistry">
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" activate="load" deactivate="unload" name="org.eclipse.passage.loc.internal.agreements.core.AgreementDomainRegistry">
<property name="org.eclipse.passage.lic.emf.edit.domain.name" value="agreements"/>
<property name="org.eclipse.passage.lic.emf.edit.file.extension" value="agreements_xmi"/>
<service>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,13 @@ public final class AgreementDomainRegistry extends BaseDomainRegistry<AgreementG
private final Map<String, Agreement> agreements = new HashMap<>();
private EventAdmin events;

@Override
@Activate
public void activate(Map<String, Object> properties) {
public void load(Map<String, Object> properties) {
super.activate(properties);
}

@Deactivate
@Override
public void deactivate(Map<String, Object> properties) {
public void unload(Map<String, Object> properties) {
agreements.clear();
groups.clear();
super.deactivate(properties);
Expand Down

0 comments on commit 011c801

Please sign in to comment.