Skip to content

Commit

Permalink
Resolve PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
NipuniBhagya committed Oct 15, 2024
1 parent a936809 commit a022382
Show file tree
Hide file tree
Showing 10 changed files with 47 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com).
~ Copyright (c) 2023-2024, WSO2 LLC. (http://www.wso2.com).
~
~ WSO2 LLC. licenses this file to you under the Apache License,
~ Version 2.0 (the "License"); you may not use this file except
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,19 @@ private APIResourceManagementServiceHolder() {}
private static class APIResourceManagerHolder {

static final APIResourceManager SERVICE = (APIResourceManager) PrivilegedCarbonContext
.getThreadLocalCarbonContext()
.getOSGiService(APIResourceManager.class, null);
.getThreadLocalCarbonContext().getOSGiService(APIResourceManager.class, null);
}

private static class APIResourceCollectionManagerHolder {

static final APIResourceCollectionManager SERVICE = (APIResourceCollectionManager) PrivilegedCarbonContext
.getThreadLocalCarbonContext()
.getOSGiService(APIResourceCollectionManager.class, null);
.getThreadLocalCarbonContext().getOSGiService(APIResourceCollectionManager.class, null);
}

private static class OAuthAdminServiceImplHolder {

static final OAuthAdminServiceImpl SERVICE = (OAuthAdminServiceImpl) PrivilegedCarbonContext
.getThreadLocalCarbonContext()
.getOSGiService(OAuthAdminServiceImpl.class, null);
.getThreadLocalCarbonContext().getOSGiService(OAuthAdminServiceImpl.class, null);
}

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com).
~ Copyright (c) 2023-2024, WSO2 LLC. (http://www.wso2.com).
~
~ WSO2 LLC. licenses this file to you under the Apache License,
~ Version 2.0 (the "License"); you may not use this file except
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public class ApiResourcesApi {
private final ApiResourcesApiService delegate;

public ApiResourcesApi() {

this.delegate = ApiResourcesApiServiceFactory.getApiResourcesApi();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public class MetaApi {
private final MetaApiService delegate;

public MetaApi() {

this.delegate = MetaApiServiceFactory.getMetaApi();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public class ScopesApi {
private final ScopesApiService delegate;

public ScopesApi() {

this.delegate = ScopesApiServiceFactory.getScopesApi();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public class ServerAPIResourceCollectionManagementService {
private final APIResourceCollectionManager apiResourceCollectionManager;

public ServerAPIResourceCollectionManagementService(APIResourceCollectionManager apiResourceCollectionManager) {

this.apiResourceCollectionManager = apiResourceCollectionManager;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public class ServerAPIResourceManagementService {
private static final Log LOG = LogFactory.getLog(ServerAPIResourceManagementService.class);

public ServerAPIResourceManagementService(APIResourceManager apiResourceManager) {

this.apiResourceManager = apiResourceManager;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Copyright (c) 2023-2024, WSO2 LLC. (http://www.wso2.com).
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

package org.wso2.carbon.identity.api.server.api.resource.v1.factories;

import org.wso2.carbon.identity.api.resource.collection.mgt.APIResourceCollectionManager;
Expand Down Expand Up @@ -28,6 +46,7 @@ public class ServerAPIResourceCollectionManagementServiceFactory {
* @return ServerAPIResourceCollectionManagementService.
*/
public static ServerAPIResourceCollectionManagementService getServerAPIResourceCollectionManagementService() {

return SERVICE;
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Copyright (c) 2023-2024, WSO2 LLC. (http://www.wso2.com).
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

package org.wso2.carbon.identity.api.server.api.resource.v1.factories;

import org.wso2.carbon.identity.api.resource.mgt.APIResourceManager;
Expand Down

0 comments on commit a022382

Please sign in to comment.