From 1954f9a029304375b8b400feab4b8b88f14b0830 Mon Sep 17 00:00:00 2001 From: Nipuni Paaris Date: Mon, 9 Dec 2024 16:16:34 +0530 Subject: [PATCH] [Spring Cleanup] Remove Spring dependencies in API resource management API (#686) * Remove Spring dependencies in API resource management API * Resolve PR comments --- .../pom.xml | 7 +-- .../APIResourceManagementServiceHolder.java | 61 +++++++----------- ...sourceCollectionMgtOSGiServiceFactory.java | 50 --------------- .../APIResourceMgtOSGiServiceFactory.java | 50 --------------- .../factory/OAuthAdminOSGiServiceFactory.java | 53 ---------------- .../pom.xml | 7 +-- .../api/resource/v1/ApiResourcesApi.java | 12 ++-- .../api/server/api/resource/v1/MetaApi.java | 12 ++-- .../api/server/api/resource/v1/ScopesApi.java | 12 ++-- .../ApiResourcesApiServiceFactory.java | 12 +++- .../v1/factories/MetaApiServiceFactory.java | 9 ++- .../v1/factories/ScopesApiServiceFactory.java | 12 +++- ...PIResourceCollectionManagementService.java | 22 ++++--- .../ServerAPIResourceManagementService.java | 62 +++++++++---------- ...rceCollectionManagementServiceFactory.java | 52 ++++++++++++++++ ...erAPIResourceManagementServiceFactory.java | 52 ++++++++++++++++ .../v1/impl/ApiResourcesApiServiceImpl.java | 16 +++-- .../resource/v1/impl/MetaApiServiceImpl.java | 17 +++-- .../v1/impl/ScopesApiServiceImpl.java | 14 ++++- .../cxf/api-resource-server-v1-cxf.xml | 44 ------------- 20 files changed, 262 insertions(+), 314 deletions(-) delete mode 100644 components/org.wso2.carbon.identity.api.server.api.resource/org.wso2.carbon.identity.api.server.api.resource.common/src/main/java/org/wso2/carbon/identity/api/server/api/resource/common/factory/APIResourceCollectionMgtOSGiServiceFactory.java delete mode 100644 components/org.wso2.carbon.identity.api.server.api.resource/org.wso2.carbon.identity.api.server.api.resource.common/src/main/java/org/wso2/carbon/identity/api/server/api/resource/common/factory/APIResourceMgtOSGiServiceFactory.java delete mode 100644 components/org.wso2.carbon.identity.api.server.api.resource/org.wso2.carbon.identity.api.server.api.resource.common/src/main/java/org/wso2/carbon/identity/api/server/api/resource/common/factory/OAuthAdminOSGiServiceFactory.java create mode 100644 components/org.wso2.carbon.identity.api.server.api.resource/org.wso2.carbon.identity.api.server.api.resource.v1/src/main/java/org/wso2/carbon/identity/api/server/api/resource/v1/factories/ServerAPIResourceCollectionManagementServiceFactory.java create mode 100644 components/org.wso2.carbon.identity.api.server.api.resource/org.wso2.carbon.identity.api.server.api.resource.v1/src/main/java/org/wso2/carbon/identity/api/server/api/resource/v1/factories/ServerAPIResourceManagementServiceFactory.java delete mode 100644 components/org.wso2.carbon.identity.api.server.api.resource/org.wso2.carbon.identity.api.server.api.resource.v1/src/main/resources/META-INF/cxf/api-resource-server-v1-cxf.xml diff --git a/components/org.wso2.carbon.identity.api.server.api.resource/org.wso2.carbon.identity.api.server.api.resource.common/pom.xml b/components/org.wso2.carbon.identity.api.server.api.resource/org.wso2.carbon.identity.api.server.api.resource.common/pom.xml index a9e47daa00..c0ea34de48 100644 --- a/components/org.wso2.carbon.identity.api.server.api.resource/org.wso2.carbon.identity.api.server.api.resource.common/pom.xml +++ b/components/org.wso2.carbon.identity.api.server.api.resource/org.wso2.carbon.identity.api.server.api.resource.common/pom.xml @@ -1,6 +1,6 @@ - - - - - - - - - - - - - - - - - - - - -