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);
}
Aggregations