Search in sources :

Example 1 with WebhooksDeliveryEventHandler

use of org.wso2.carbon.apimgt.notification.WebhooksDeliveryEventHandler in project carbon-apimgt by wso2.

the class ApimgtNotificationServiceComponent method activate.

@Activate
protected void activate(ComponentContext ctxt) {
    ctxt.getBundleContext().registerService(KeyManagerEventHandler.class, new DefaultKeyManagerEventHandlerImpl(), null);
    ctxt.getBundleContext().registerService(EventHandler.class, new WebhooksSubscriptionEventHandler(), null);
    ctxt.getBundleContext().registerService(EventHandler.class, new WebhooksDeliveryEventHandler(), null);
    ctxt.getBundleContext().registerService(NotificationEventService.class, new NotificationEventService(), null);
}
Also used : NotificationEventService(org.wso2.carbon.apimgt.notification.NotificationEventService) WebhooksDeliveryEventHandler(org.wso2.carbon.apimgt.notification.WebhooksDeliveryEventHandler) DefaultKeyManagerEventHandlerImpl(org.wso2.carbon.apimgt.notification.DefaultKeyManagerEventHandlerImpl) WebhooksSubscriptionEventHandler(org.wso2.carbon.apimgt.notification.WebhooksSubscriptionEventHandler) Activate(org.osgi.service.component.annotations.Activate)

Aggregations

Activate (org.osgi.service.component.annotations.Activate)1 DefaultKeyManagerEventHandlerImpl (org.wso2.carbon.apimgt.notification.DefaultKeyManagerEventHandlerImpl)1 NotificationEventService (org.wso2.carbon.apimgt.notification.NotificationEventService)1 WebhooksDeliveryEventHandler (org.wso2.carbon.apimgt.notification.WebhooksDeliveryEventHandler)1 WebhooksSubscriptionEventHandler (org.wso2.carbon.apimgt.notification.WebhooksSubscriptionEventHandler)1