1212 *
1313 */
1414
15- package org .eclipse .edc .identity ;
15+ package org .eclipse .edc .heleade . identity ;
1616
17- import org .eclipse .edc .identity .api .IamIdentityApiController ;
18- import org .eclipse .edc .identity .load .FileParticipantIdentityLoader ;
19- import org .eclipse .edc .identity .load .ParticipantIdentityLoader ;
17+ import org .eclipse .edc .heleade . identity .api .IamIdentityApiController ;
18+ import org .eclipse .edc .heleade . identity .load .FileParticipantIdentityLoader ;
19+ import org .eclipse .edc .heleade . identity .load .ParticipantIdentityLoader ;
2020import org .eclipse .edc .runtime .metamodel .annotation .Extension ;
2121import org .eclipse .edc .runtime .metamodel .annotation .Inject ;
2222import org .eclipse .edc .runtime .metamodel .annotation .Provider ;
@@ -64,6 +64,9 @@ public class IamIdentityExtension implements ServiceExtension {
6464 @ Inject
6565 private TypeManager typeManager ;
6666
67+ @ Inject
68+ WebService webService ;
69+
6770
6871 @ Override
6972 public String name () {
@@ -106,12 +109,11 @@ public void initialize(ServiceExtensionContext context) {
106109 }
107110 }
108111
112+ IamIdentityService iamIdentityService = new IamIdentityService (typeManager , claims , participantId , signedClaims );
113+ context .registerService (IdentityService .class , iamIdentityService );
109114
110- webService .registerResource (new IamIdentityApiController (context .getMonitor ()));
115+ webService .registerResource (new IamIdentityApiController (iamIdentityService , context .getMonitor ()));
111116
112- context .registerService (
113- IdentityService .class ,
114- new IamIdentityService (typeManager , claims , participantId , signedClaims ));
115117 }
116118
117119 /**
@@ -124,8 +126,4 @@ public AudienceResolver audienceResolver() {
124126 return (msg ) -> Result .success (msg .getCounterPartyAddress ());
125127 }
126128
127- @ Inject
128- WebService webService ;
129-
130-
131129}
0 commit comments