use of org.mule.runtime.core.internal.processor.interceptor.ReactiveAroundInterceptorAdapter in project mule by mulesoft.
the class AbstractMessageProcessorChain method initialise.
@Override
public void initialise() throws InitialisationException {
processorInterceptorManager.getInterceptorFactories().stream().forEach(interceptorFactory -> {
ReactiveInterceptorAdapter reactiveInterceptorAdapter = new ReactiveInterceptorAdapter(interceptorFactory);
try {
muleContext.getInjector().inject(reactiveInterceptorAdapter);
} catch (MuleException e) {
throw new MuleRuntimeException(e);
}
additionalInterceptors.add(0, reactiveInterceptorAdapter);
});
processorInterceptorManager.getInterceptorFactories().stream().forEach(interceptorFactory -> {
ReactiveAroundInterceptorAdapter reactiveInterceptorAdapter = new ReactiveAroundInterceptorAdapter(interceptorFactory);
try {
muleContext.getInjector().inject(reactiveInterceptorAdapter);
} catch (MuleException e) {
throw new MuleRuntimeException(e);
}
additionalInterceptors.add(0, reactiveInterceptorAdapter);
});
initialiseIfNeeded(getMessageProcessorsForLifecycle(), muleContext);
}
Aggregations