Interface ExceptionHandlerConfigAware
- All Known Implementing Classes:
ChannelAdaptor, MultiSessionChannelAdaptor
public interface ExceptionHandlerConfigAware
Adds the logic for parsing exception handler pipeline configurations to any implementing class.
- Since:
- 2.1.2
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidaddExceptionHandlers(ExceptionHandlerAware receiver, org.jdom2.Element elem, QFactory fact) Parsesexception-handlerchild elements fromelemand registers them withreceiver.
-
Method Details
-
addExceptionHandlers
default void addExceptionHandlers(ExceptionHandlerAware receiver, org.jdom2.Element elem, QFactory fact) throws ConfigurationException Parsesexception-handlerchild elements fromelemand registers them withreceiver.- Parameters:
receiver- the object that will receive the configured handlerselem- the XML element containingexception-handlerchildrenfact- the QFactory used to instantiate handler classes- Throws:
ConfigurationException- if a handler class cannot be found or configured
-