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 Summary
ModifierConstructorDescriptionprotected
Empty constructor requiring implementation of#getAlertDetector
and#getAlertHandler
methodsprotected
AbstractAlert
(AlertDetector<T> detector, AlertHandler<T> handler) The default constructor setting thedetector
andhandler
explicitly -
Method Summary
Modifier and TypeMethodDescriptionvoid
Detect and execute the alert on the provided objectprotected AlertDetector
<T> Gets the alert detectorprotected AlertHandler
<T> Gets the alert handler
-
Constructor Details
-
AbstractAlert
protected AbstractAlert()Empty constructor requiring implementation of#getAlertDetector
and#getAlertHandler
methods -
AbstractAlert
The default constructor setting thedetector
andhandler
explicitly- Parameters:
detector
-AlertDetector
to detect an eventhandler
-AlertHandler
to execute the corresponding code
-
-
Method Details
-
alert
-
getAlertDetector
-
getAlertHandler
-