Search in sources :

Example 1 with SolaceKeyGenNotifier

use of org.wso2.carbon.apimgt.solace.notifiers.SolaceKeyGenNotifier in project carbon-apimgt by wso2.

the class SolaceManagerComponent method activate.

@Activate
protected void activate(ComponentContext componentContext) throws Exception {
    if (log.isDebugEnabled()) {
        log.debug("Activating SolaceManager component");
    }
    BundleContext bundleContext = componentContext.getBundleContext();
    // Registering Notifiers
    bundleContext.registerService(Notifier.class.getName(), new SolaceSubscriptionsNotifier(), null);
    bundleContext.registerService(Notifier.class.getName(), new SolaceApplicationNotifier(), null);
    bundleContext.registerService(Notifier.class.getName(), new SolaceKeyGenNotifier(), null);
    if (log.isDebugEnabled()) {
        log.debug("SolaceManager component activated");
    }
}
Also used : SolaceSubscriptionsNotifier(org.wso2.carbon.apimgt.solace.notifiers.SolaceSubscriptionsNotifier) SolaceApplicationNotifier(org.wso2.carbon.apimgt.solace.notifiers.SolaceApplicationNotifier) BundleContext(org.osgi.framework.BundleContext) Notifier(org.wso2.carbon.apimgt.impl.notifier.Notifier) SolaceSubscriptionsNotifier(org.wso2.carbon.apimgt.solace.notifiers.SolaceSubscriptionsNotifier) SolaceApplicationNotifier(org.wso2.carbon.apimgt.solace.notifiers.SolaceApplicationNotifier) SolaceKeyGenNotifier(org.wso2.carbon.apimgt.solace.notifiers.SolaceKeyGenNotifier) SolaceKeyGenNotifier(org.wso2.carbon.apimgt.solace.notifiers.SolaceKeyGenNotifier) Activate(org.osgi.service.component.annotations.Activate)

Aggregations

BundleContext (org.osgi.framework.BundleContext)1 Activate (org.osgi.service.component.annotations.Activate)1 Notifier (org.wso2.carbon.apimgt.impl.notifier.Notifier)1 SolaceApplicationNotifier (org.wso2.carbon.apimgt.solace.notifiers.SolaceApplicationNotifier)1 SolaceKeyGenNotifier (org.wso2.carbon.apimgt.solace.notifiers.SolaceKeyGenNotifier)1 SolaceSubscriptionsNotifier (org.wso2.carbon.apimgt.solace.notifiers.SolaceSubscriptionsNotifier)1