Search in sources :

Example 1 with ProcessingExceptionHandler

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();
}
Also used : ProcessingExceptionHandler(com.adaptris.core.ProcessingExceptionHandler)

Example 2 with ProcessingExceptionHandler

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;
}
Also used : ProcessingExceptionHandler(com.adaptris.core.ProcessingExceptionHandler) StubEventHandler(com.adaptris.core.stubs.StubEventHandler) Adapter(com.adaptris.core.Adapter) ChannelList(com.adaptris.core.ChannelList)

Aggregations

ProcessingExceptionHandler (com.adaptris.core.ProcessingExceptionHandler)2 Adapter (com.adaptris.core.Adapter)1 ChannelList (com.adaptris.core.ChannelList)1 StubEventHandler (com.adaptris.core.stubs.StubEventHandler)1