Search in sources :

Example 1 with RESTClientShutdownObserver

use of org.wso2.carbon.bpmn.extensions.rest.RESTClientShutdownObserver in project carbon-business-process by wso2.

the class BPMNExtensionsComponent method activate.

protected void activate(ComponentContext ctxt) {
    BundleContext bundleContext = ctxt.getBundleContext();
    RESTInvoker restInvoker = new RESTInvoker();
    BPMNRestExtensionHolder.getInstance().setRestInvoker(restInvoker);
    if (log.isDebugEnabled()) {
        log.debug("Activated bpmn extensions component and configured rest invoker");
    }
    bundleContext.registerService(WaitBeforeShutdownObserver.class, new RESTClientShutdownObserver(), null);
}
Also used : RESTInvoker(org.wso2.carbon.bpmn.extensions.rest.RESTInvoker) RESTClientShutdownObserver(org.wso2.carbon.bpmn.extensions.rest.RESTClientShutdownObserver) BundleContext(org.osgi.framework.BundleContext)

Aggregations

BundleContext (org.osgi.framework.BundleContext)1 RESTClientShutdownObserver (org.wso2.carbon.bpmn.extensions.rest.RESTClientShutdownObserver)1 RESTInvoker (org.wso2.carbon.bpmn.extensions.rest.RESTInvoker)1