<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright (c) 2023, 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.
  -->

<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.springframework.org/schema/beans"
       xsi:schemaLocation="http://www.springframework.org/schema/beans  http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
    <bean class="org.wso2.carbon.identity.api.server.organization.selfservice.v1.impl.SelfServiceApiServiceImpl"/>
    <bean class="org.wso2.carbon.identity.api.server.organization.selfservice.v1.core.SelfServiceMgtService"/>

    <bean id="GovernanceConnectorServiceFactoryBean"
          class="org.wso2.carbon.identity.api.server.organization.selfservice.common.factory.GovernanceOSGIServiceFactory"/>
    <bean id="ApplicationManagementServiceFactoryBean"
          class="org.wso2.carbon.identity.api.server.organization.selfservice.common.factory.ApplicationManagementOSGiServiceFactory"/>

    <bean id="SelfServiceMgtServiceHolderBean"
          class="org.wso2.carbon.identity.api.server.organization.selfservice.common.SelfServiceMgtServiceHolder">
        <property name="IdentityGovernanceService" ref="GovernanceConnectorServiceFactoryBean"/>
        <property name="ApplicationManagementService" ref="ApplicationManagementServiceFactoryBean"/>
    </bean>
</beans>
