use of com.adaptris.core.ProcessingExceptionHandler in project interlok by adaptris.
the class AdapterManager method setMessageErrorHandler.
@Override
public void setMessageErrorHandler(String xml) throws CoreException {
ensureState(ClosedState.getInstance());
ProcessingExceptionHandler obj = (ProcessingExceptionHandler) DefaultMarshaller.getDefaultMarshaller().unmarshal(xml);
LifecycleHelper.prepare(obj);
getWrappedComponent().setMessageErrorHandler(obj);
registerChildRuntime(obj);
marshalAndSendNotification();
}
use of com.adaptris.core.ProcessingExceptionHandler in project interlok by adaptris.
the class ExampleErrorHandlerCase method retrieveObjectForSampleConfig.
@Override
protected Object retrieveObjectForSampleConfig() {
Adapter result = new Adapter();
result.setUniqueId("dummy-adapter");
ProcessingExceptionHandler meh = createForExamples();
result.setMessageErrorHandler(meh);
result.setEventHandler(new StubEventHandler());
result.setChannelList(new ChannelList());
return result;
}
Aggregations