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);
}
}
Aggregations