Package eu.europa.esig.dss.alert
Class AbstractAlert<T>
java.lang.Object
eu.europa.esig.dss.alert.AbstractAlert<T>
- Type Parameters:
- T- the object to execute alert detection and handling on
- All Implemented Interfaces:
- Alert<T>
- Direct Known Subclasses:
- AbstractStatusAlert,- DSSErrorHandlerAlert,- LOTLAlert,- SilentOnAlert,- TLAlert
The class contains a general logic for alert handling
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedEmpty constructor requiring implementation of#getAlertDetectorand#getAlertHandlermethodsprotectedAbstractAlert(AlertDetector<T> detector, AlertHandler<T> handler) The default constructor setting thedetectorandhandlerexplicitly
- 
Method SummaryModifier and TypeMethodDescriptionvoidDetect and execute the alert on the provided objectprotected AlertDetector<T> Gets the alert detectorprotected AlertHandler<T> Gets the alert handler
- 
Constructor Details- 
AbstractAlertprotected AbstractAlert()Empty constructor requiring implementation of#getAlertDetectorand#getAlertHandlermethods
- 
AbstractAlertThe default constructor setting thedetectorandhandlerexplicitly- Parameters:
- detector-- AlertDetectorto detect an event
- handler-- AlertHandlerto execute the corresponding code
 
 
- 
- 
Method Details- 
alert
- 
getAlertDetector
- 
getAlertHandler
 
-