Package org.faceless.publisher.ext
Interface ReportFactoryExtension
- All Known Subinterfaces:
SignatureExtension
- All Known Implementing Classes:
ContentMathMLExtension,DefaultSignatureExtension,FreeMarkerExtension,GlobalSignSignatureExtension,HtmlAutoDirExtension,HtmlNamespaceExtension,IndexFilter,LessStylesheetExtension,LinkProcessingInstructionExtension,MailExtension,MailServerExtension,ScssStylesheetExtension,SpiderExtension,SSMLExtension,XIncludeExtension,XMLStylesheetExtension,XsltAttributeExtension,ZTemplateExtension
public interface ReportFactoryExtension
Represents an extension to the ReportFactory, adding the ability to parse
new types of input or process it in a different way in response to a
processing instruction.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidconfigure(Json json) Configure the extension.default booleanAttempt to load the specified object into the specified Report.default voidNotify this object it has beem added to a Report.default voidregister(ReportFactory factory) Notify this object it has beem added to a ReportFactory.default voidunregister(Report report) Notify this object when the Report it was registered on has completed parsing.default voidunregister(ReportFactory factory) Notify this object it has been removed from a ReportFactory.
-
Method Details
-
unregister
Notify this object it has been removed from a ReportFactory. Will be called when this object is removed from the list returned byReportFactory.getReportFactoryExtensions(). The default implementation is a no-op. -
register
Notify this object it has beem added to a ReportFactory. Will be called when this object is added to the list returned byReportFactory.getReportFactoryExtensions(). The default implementation is a no-op. -
register
Notify this object it has beem added to a Report. Will be called when this object is added to the list returned byReportFactory.getReportFactoryExtensions(). The default implementation is a no-op. -
unregister
Notify this object when the Report it was registered on has completed parsing. Will be called when this object is added to the list returned byReportFactory.getReportFactoryExtensions(). The default implementation is a no-op. -
configure
default void configure(Json json) Configure the extension. This method will be called by the web-service immediately after the extension is added, to pass in any parameters set by the user. The default implementation does nothing- Since:
- 1.3
-
load
Attempt to load the specified object into the specified Report. If this extension can load the specified type of object, it should configure the report however it needs to, eventually callload(java.lang.Object, org.faceless.publisher.Report)with anInputSource,Readeror similar, and return true. If this extension cannot load the specified type of object, return false. This is the default.- Throws:
IOException
-