Search in sources :

Example 1 with ApplicationClaimMgtListener

use of org.wso2.carbon.identity.application.mgt.listener.ApplicationClaimMgtListener in project carbon-identity-framework by wso2.

the class ApplicationManagementServiceComponent method activate.

@Activate
protected void activate(ComponentContext context) {
    try {
        buildFileBasedSPList();
        if (log.isDebugEnabled()) {
            log.debug("File based SP building completed");
        }
        loadAuthenticationTemplates();
        if (log.isDebugEnabled()) {
            log.debug("Authentication templates are loaded");
        }
        bundleContext = context.getBundleContext();
        // Registering Application management service as a OSGIService
        bundleContext.registerService(ApplicationManagementService.class.getName(), ApplicationManagementServiceImpl.getInstance(), null);
        bundleContext.registerService(IdentityProviderMgtListener.class.getName(), new ApplicationIdentityProviderMgtListener(), null);
        ApplicationMgtSystemConfig.getInstance();
        bundleContext.registerService(ApplicationMgtListener.class.getName(), new ApplicationMgtAuditLogger(), null);
        bundleContext.registerService(DefaultAuthSeqMgtService.class.getName(), DefaultAuthSeqMgtServiceImpl.getInstance(), null);
        // Register the DefaultApplicationResourceMgtListener.
        context.getBundleContext().registerService(ApplicationResourceManagementListener.class, new DefaultApplicationResourceMgtListener(), null);
        bundleContext.registerService(DiscoverableApplicationManager.class.getName(), new DiscoverableApplicationManagerImpl(), null);
        bundleContext.registerService(ClaimMetadataMgtListener.class.getName(), new ApplicationClaimMgtListener(), null);
        // Register the ApplicationValidator.
        context.getBundleContext().registerService(ApplicationValidator.class, new DefaultApplicationValidator(), null);
        if (log.isDebugEnabled()) {
            log.debug("Identity ApplicationManagementComponent bundle is activated");
        }
    } catch (Exception e) {
        log.error("Error while activating ApplicationManagementComponent bundle", e);
    }
}
Also used : ApplicationClaimMgtListener(org.wso2.carbon.identity.application.mgt.listener.ApplicationClaimMgtListener) ApplicationIdentityProviderMgtListener(org.wso2.carbon.identity.application.mgt.listener.ApplicationIdentityProviderMgtListener) IdentityProviderMgtListener(org.wso2.carbon.idp.mgt.listener.IdentityProviderMgtListener) ApplicationMgtListener(org.wso2.carbon.identity.application.mgt.listener.ApplicationMgtListener) DiscoverableApplicationManager(org.wso2.carbon.identity.application.mgt.DiscoverableApplicationManager) ClaimMetadataMgtListener(org.wso2.carbon.identity.claim.metadata.mgt.listener.ClaimMetadataMgtListener) JSONException(org.json.JSONException) IOException(java.io.IOException) DiscoverableApplicationManagerImpl(org.wso2.carbon.identity.application.mgt.internal.impl.DiscoverableApplicationManagerImpl) ApplicationMgtAuditLogger(org.wso2.carbon.identity.application.mgt.listener.ApplicationMgtAuditLogger) DefaultAuthSeqMgtService(org.wso2.carbon.identity.application.mgt.defaultsequence.DefaultAuthSeqMgtService) DefaultApplicationValidator(org.wso2.carbon.identity.application.mgt.validator.DefaultApplicationValidator) ApplicationManagementService(org.wso2.carbon.identity.application.mgt.ApplicationManagementService) ApplicationIdentityProviderMgtListener(org.wso2.carbon.identity.application.mgt.listener.ApplicationIdentityProviderMgtListener) DefaultApplicationResourceMgtListener(org.wso2.carbon.identity.application.mgt.listener.DefaultApplicationResourceMgtListener) Activate(org.osgi.service.component.annotations.Activate)

Aggregations

IOException (java.io.IOException)1 JSONException (org.json.JSONException)1 Activate (org.osgi.service.component.annotations.Activate)1 ApplicationManagementService (org.wso2.carbon.identity.application.mgt.ApplicationManagementService)1 DiscoverableApplicationManager (org.wso2.carbon.identity.application.mgt.DiscoverableApplicationManager)1 DefaultAuthSeqMgtService (org.wso2.carbon.identity.application.mgt.defaultsequence.DefaultAuthSeqMgtService)1 DiscoverableApplicationManagerImpl (org.wso2.carbon.identity.application.mgt.internal.impl.DiscoverableApplicationManagerImpl)1 ApplicationClaimMgtListener (org.wso2.carbon.identity.application.mgt.listener.ApplicationClaimMgtListener)1 ApplicationIdentityProviderMgtListener (org.wso2.carbon.identity.application.mgt.listener.ApplicationIdentityProviderMgtListener)1 ApplicationMgtAuditLogger (org.wso2.carbon.identity.application.mgt.listener.ApplicationMgtAuditLogger)1 ApplicationMgtListener (org.wso2.carbon.identity.application.mgt.listener.ApplicationMgtListener)1 DefaultApplicationResourceMgtListener (org.wso2.carbon.identity.application.mgt.listener.DefaultApplicationResourceMgtListener)1 DefaultApplicationValidator (org.wso2.carbon.identity.application.mgt.validator.DefaultApplicationValidator)1 ClaimMetadataMgtListener (org.wso2.carbon.identity.claim.metadata.mgt.listener.ClaimMetadataMgtListener)1 IdentityProviderMgtListener (org.wso2.carbon.idp.mgt.listener.IdentityProviderMgtListener)1