Search in sources :

Example 1 with EventHubEventPublisherFactory

use of org.wso2.carbon.apimgt.eventing.hub.EventHubEventPublisherFactory in project carbon-apimgt by wso2.

the class ServiceComponent method activate.

@Activate
protected void activate(ComponentContext componentContext) {
    componentContext.getBundleContext().registerService(EventPublisherFactory.class.getName(), new EventHubEventPublisherFactory(), null);
    log.info("Eventing Hub ServiceComponent is activated");
}
Also used : EventHubEventPublisherFactory(org.wso2.carbon.apimgt.eventing.hub.EventHubEventPublisherFactory) EventPublisherFactory(org.wso2.carbon.apimgt.eventing.EventPublisherFactory) EventHubEventPublisherFactory(org.wso2.carbon.apimgt.eventing.hub.EventHubEventPublisherFactory) Activate(org.osgi.service.component.annotations.Activate)

Aggregations

Activate (org.osgi.service.component.annotations.Activate)1 EventPublisherFactory (org.wso2.carbon.apimgt.eventing.EventPublisherFactory)1 EventHubEventPublisherFactory (org.wso2.carbon.apimgt.eventing.hub.EventHubEventPublisherFactory)1