Class ErrorListener
- java.lang.Object
-
- org.optaweb.vehiclerouting.service.error.ErrorListener
-
- All Implemented Interfaces:
EventListener,org.springframework.context.ApplicationListener<ErrorEvent>
@Service public class ErrorListener extends Object implements org.springframework.context.ApplicationListener<ErrorEvent>
Creates messages from error events and passes them to consumers.
-
-
Constructor Summary
Constructors Constructor Description ErrorListener(ErrorMessageConsumer errorMessageConsumer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonApplicationEvent(ErrorEvent event)
-
-
-
Constructor Detail
-
ErrorListener
public ErrorListener(ErrorMessageConsumer errorMessageConsumer)
-
-
Method Detail
-
onApplicationEvent
public void onApplicationEvent(ErrorEvent event)
- Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<ErrorEvent>
-
-