Search in sources :

Example 1 with UserFunctionalityManagerImpl

use of org.wso2.carbon.identity.user.functionality.mgt.UserFunctionalityManagerImpl in project carbon-identity-framework by wso2.

the class UserFunctionalityManagerServiceComponent method activate.

/**
 * Register User Functionality Manager as an OSGi service.
 *
 * @param componentContext OSGi service component context.
 */
@Activate
protected void activate(ComponentContext componentContext) {
    try {
        BundleContext bundleContext = componentContext.getBundleContext();
        UserFunctionalityManager userFunctionalityManager = new UserFunctionalityManagerImpl();
        userFunctionalityMgtService = bundleContext.registerService(UserFunctionalityManager.class, userFunctionalityManager, null);
        if (log.isDebugEnabled()) {
            log.debug("User Functionality Manager bundle is activated.");
        }
    } catch (Exception e) {
        log.error("Error while activating UserFunctionalityManagerServiceComponent.", e);
    }
}
Also used : UserFunctionalityManagerImpl(org.wso2.carbon.identity.user.functionality.mgt.UserFunctionalityManagerImpl) UserFunctionalityManager(org.wso2.carbon.identity.user.functionality.mgt.UserFunctionalityManager) BundleContext(org.osgi.framework.BundleContext) Activate(org.osgi.service.component.annotations.Activate)

Aggregations

BundleContext (org.osgi.framework.BundleContext)1 Activate (org.osgi.service.component.annotations.Activate)1 UserFunctionalityManager (org.wso2.carbon.identity.user.functionality.mgt.UserFunctionalityManager)1 UserFunctionalityManagerImpl (org.wso2.carbon.identity.user.functionality.mgt.UserFunctionalityManagerImpl)1