From e3d16e1fd2147c38f91bd768db7fb6733bc9e1e4 Mon Sep 17 00:00:00 2001 From: NipuniBhagya Date: Fri, 11 Oct 2024 13:59:55 +0530 Subject: [PATCH 1/2] Remove Spring dependencies in the notification sender API --- .../pom.xml | 9 +-- .../NotificationSenderServiceHolder.java | 26 ++++----- ...erManagementServiceOSGiServiceFactory.java | 57 ------------------- .../pom.xml | 9 +-- .../sender/v1/NotificationSendersApi.java | 40 +++++++------ .../NotificationSendersApiServiceFactory.java | 41 +++++++------ .../NotificationSenderManagementService.java | 41 +++++++------ ...icationSenderManagementServiceFactory.java | 52 +++++++++++++++++ .../NotificationSendersApiServiceImpl.java | 18 ++++-- .../cxf/notification-sender-server-v1-cxf.xml | 27 --------- 10 files changed, 147 insertions(+), 173 deletions(-) delete mode 100644 components/org.wso2.carbon.identity.api.server.notification.sender/org.wso2.carbon.identity.api.server.notification.sender.common/src/main/java/org/wso2/carbon/identity/api/server/notification/sender/common/factory/NotificationSenderManagementServiceOSGiServiceFactory.java create mode 100644 components/org.wso2.carbon.identity.api.server.notification.sender/org.wso2.carbon.identity.api.server.notification.sender.v1/src/main/java/org/wso2/carbon/identity/api/server/notification/sender/v1/factories/NotificationSenderManagementServiceFactory.java delete mode 100644 components/org.wso2.carbon.identity.api.server.notification.sender/org.wso2.carbon.identity.api.server.notification.sender.v1/src/main/resources/META-INF/cxf/notification-sender-server-v1-cxf.xml diff --git a/components/org.wso2.carbon.identity.api.server.notification.sender/org.wso2.carbon.identity.api.server.notification.sender.common/pom.xml b/components/org.wso2.carbon.identity.api.server.notification.sender/org.wso2.carbon.identity.api.server.notification.sender.common/pom.xml index 4106595ce2..97c782d2d4 100644 --- a/components/org.wso2.carbon.identity.api.server.notification.sender/org.wso2.carbon.identity.api.server.notification.sender.common/pom.xml +++ b/components/org.wso2.carbon.identity.api.server.notification.sender/org.wso2.carbon.identity.api.server.notification.sender.common/pom.xml @@ -1,8 +1,8 @@ - - - - - - - - - From f652c5fca731852108cc56d17e98c9e9188373c6 Mon Sep 17 00:00:00 2001 From: NipuniBhagya Date: Tue, 15 Oct 2024 19:17:47 +0530 Subject: [PATCH 2/2] Resolve PR comments --- .../server/notification/sender/v1/NotificationSendersApi.java | 1 + .../v1/factories/NotificationSenderManagementServiceFactory.java | 1 + 2 files changed, 2 insertions(+) diff --git a/components/org.wso2.carbon.identity.api.server.notification.sender/org.wso2.carbon.identity.api.server.notification.sender.v1/src/gen/java/org/wso2/carbon/identity/api/server/notification/sender/v1/NotificationSendersApi.java b/components/org.wso2.carbon.identity.api.server.notification.sender/org.wso2.carbon.identity.api.server.notification.sender.v1/src/gen/java/org/wso2/carbon/identity/api/server/notification/sender/v1/NotificationSendersApi.java index cc2d677adc..c0c6b48609 100644 --- a/components/org.wso2.carbon.identity.api.server.notification.sender/org.wso2.carbon.identity.api.server.notification.sender.v1/src/gen/java/org/wso2/carbon/identity/api/server/notification/sender/v1/NotificationSendersApi.java +++ b/components/org.wso2.carbon.identity.api.server.notification.sender/org.wso2.carbon.identity.api.server.notification.sender.v1/src/gen/java/org/wso2/carbon/identity/api/server/notification/sender/v1/NotificationSendersApi.java @@ -47,6 +47,7 @@ public class NotificationSendersApi { private final NotificationSendersApiService delegate; public NotificationSendersApi() { + this.delegate = NotificationSendersApiServiceFactory.getNotificationSendersApi(); } diff --git a/components/org.wso2.carbon.identity.api.server.notification.sender/org.wso2.carbon.identity.api.server.notification.sender.v1/src/main/java/org/wso2/carbon/identity/api/server/notification/sender/v1/factories/NotificationSenderManagementServiceFactory.java b/components/org.wso2.carbon.identity.api.server.notification.sender/org.wso2.carbon.identity.api.server.notification.sender.v1/src/main/java/org/wso2/carbon/identity/api/server/notification/sender/v1/factories/NotificationSenderManagementServiceFactory.java index 619548fc36..8aafbf9733 100644 --- a/components/org.wso2.carbon.identity.api.server.notification.sender/org.wso2.carbon.identity.api.server.notification.sender.v1/src/main/java/org/wso2/carbon/identity/api/server/notification/sender/v1/factories/NotificationSenderManagementServiceFactory.java +++ b/components/org.wso2.carbon.identity.api.server.notification.sender/org.wso2.carbon.identity.api.server.notification.sender.v1/src/main/java/org/wso2/carbon/identity/api/server/notification/sender/v1/factories/NotificationSenderManagementServiceFactory.java @@ -46,6 +46,7 @@ public class NotificationSenderManagementServiceFactory { * @return NotificationSenderManagementService service */ public static NotificationSenderManagementService getNotificationSenderManagementService() { + return SERVICE; }