use of org.mule.runtime.core.internal.util.MessagingExceptionResolver in project mule by mulesoft.
the class ExtensionMessageSource method createSource.
private synchronized void createSource() throws Exception {
if (sourceAdapter == null) {
CoreEvent initialiserEvent = null;
try {
initialiserEvent = getInitialiserEvent(muleContext);
sourceAdapter = sourceAdapterFactory.createAdapter(getConfiguration(initialiserEvent), createSourceCallbackFactory(), this, sourceConnectionManager, new MessagingExceptionResolver(this));
muleContext.getInjector().inject(sourceAdapter);
} finally {
if (initialiserEvent != null) {
((BaseEventContext) initialiserEvent.getContext()).success();
}
}
}
}
Aggregations