processor);
Processor outputProcessor = loggingProcessor.getOutput();
if (Boolean.getBoolean(JmxSystemPropertyKeys.DISABLED)) {
sendProcessor = assertIsInstanceOf(SendProcessor.class, outputProcessor);
} else {
InstrumentationProcessor interceptor =
assertIsInstanceOf(InstrumentationProcessor.class, outputProcessor);
sendProcessor = assertIsInstanceOf(SendProcessor.class, interceptor.getProcessor());
}
} else {
assertEquals("From endpoint", "seda:b", endpointUri);
DeadLetterChannel deadLetterChannel = assertIsInstanceOf(DeadLetterChannel.class, processor);
Processor outputProcessor = deadLetterChannel.getOutput();
if (Boolean.getBoolean(JmxSystemPropertyKeys.DISABLED)) {
sendProcessor = assertIsInstanceOf(SendProcessor.class, outputProcessor);
} else {
InstrumentationProcessor interceptor =
assertIsInstanceOf(InstrumentationProcessor.class, outputProcessor);
sendProcessor = assertIsInstanceOf(SendProcessor.class, interceptor.getProcessor());
}
}
log.debug("For " + endpointUri + " using: " + sendProcessor);
}
}