Search in sources :

Example 1 with ClaimConfigListener

use of org.wso2.carbon.identity.claim.metadata.mgt.listener.ClaimConfigListener in project carbon-identity-framework by wso2.

the class IdentityClaimManagementServiceComponent method registerClaimConfigListener.

/**
 * Register ClaimConfigListener as a UserStoreConfigListener service.
 *
 * @param bundleCtx BundleContext
 */
private void registerClaimConfigListener(BundleContext bundleCtx) {
    UserStoreConfigListener claimConfigListener = new ClaimConfigListener();
    ServiceRegistration mappedClaimConfigListenerSR = bundleCtx.registerService(UserStoreConfigListener.class.getName(), claimConfigListener, null);
    if (mappedClaimConfigListenerSR != null) {
        if (log.isDebugEnabled()) {
            log.debug("ClaimConfigListener Service registered.");
        }
    } else {
        log.error("Error registering ClaimConfigListener Service.");
    }
}
Also used : UserStoreConfigListener(org.wso2.carbon.identity.user.store.configuration.listener.UserStoreConfigListener) ClaimConfigListener(org.wso2.carbon.identity.claim.metadata.mgt.listener.ClaimConfigListener) ServiceRegistration(org.osgi.framework.ServiceRegistration)

Aggregations

ServiceRegistration (org.osgi.framework.ServiceRegistration)1 ClaimConfigListener (org.wso2.carbon.identity.claim.metadata.mgt.listener.ClaimConfigListener)1 UserStoreConfigListener (org.wso2.carbon.identity.user.store.configuration.listener.UserStoreConfigListener)1