Package com.unitesk.aspectrace.sampleApp
Class ErrorCollector
- java.lang.Object
-
- com.unitesk.aspectrace.sampleApp.ErrorCollector
-
- All Implemented Interfaces:
AspectListener
,ErrorListener
,ConfigurableGenerator
public class ErrorCollector extends java.lang.Object implements ErrorListener, ConfigurableGenerator
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ErrorCollector.FailurePage
Класс страницы отчёта об ошибке.
-
Field Summary
Fields Modifier and Type Field Description java.io.File
reportDir
-
Constructor Summary
Constructors Constructor Description ErrorCollector()
ErrorCollector(java.util.Properties config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSectionProvider(ContextProvider<HtmlReportPage> sp)
void
attachedToAdapter(java.lang.String aspect, AspectAdapter adapter)
Notifies the listener about it's connection to adapter.void
configure(java.util.Properties config)
ErrorCollector.FailurePage
getPage(int index)
ReportPage[]
getPages()
void
processFailure(FailureMessage msg)
void
processTagChange(TagMessage msg)
Changes set of tags for this aspect.
-
-
-
Method Detail
-
configure
public void configure(java.util.Properties config)
- Specified by:
configure
in interfaceConfigurableGenerator
-
processFailure
public void processFailure(FailureMessage msg)
- Specified by:
processFailure
in interfaceErrorListener
-
processTagChange
public void processTagChange(TagMessage msg)
Description copied from interface:AspectListener
Changes set of tags for this aspect.- Specified by:
processTagChange
in interfaceAspectListener
-
attachedToAdapter
public void attachedToAdapter(java.lang.String aspect, AspectAdapter adapter)
Description copied from interface:AspectListener
Notifies the listener about it's connection to adapter.- Specified by:
attachedToAdapter
in interfaceAspectListener
- Parameters:
aspect
- Related aspectadapter
- Connected adapter
-
getPage
public ErrorCollector.FailurePage getPage(int index)
-
getPages
public ReportPage[] getPages()
- Specified by:
getPages
in interfaceConfigurableGenerator
-
addSectionProvider
public void addSectionProvider(ContextProvider<HtmlReportPage> sp)
-
-