use of org.wso2.carbon.identity.governance.internal.service.impl.notification.DefaultNotificationChannelManager in project identity-governance by wso2-extensions.
the class IdentityMgtServiceComponent method activate.
@Activate
protected void activate(ComponentContext context) {
try {
IdentityMgtEventListener listener = new IdentityMgtEventListener();
context.getBundleContext().registerService(UserOperationEventListener.class, listener, null);
context.getBundleContext().registerService(UserOperationEventListener.class, new IdentityStoreEventListener(), null);
IdentityGovernanceServiceImpl identityGovernanceService = new IdentityGovernanceServiceImpl();
context.getBundleContext().registerService(IdentityGovernanceService.class, identityGovernanceService, null);
IdentityMgtServiceDataHolder.getInstance().setIdentityGovernanceService(identityGovernanceService);
DefaultNotificationChannelManager defaultNotificationChannelManager = new DefaultNotificationChannelManager();
context.getBundleContext().registerService(NotificationChannelManager.class.getName(), defaultNotificationChannelManager, null);
if (log.isDebugEnabled()) {
log.debug("Identity Management Listener is enabled");
}
} catch (Exception e) {
log.error("Error while activating identity governance component.", e);
}
}
Aggregations