Package org.faceless.publisher.ext
Class SimpleReportConfiguration
java.lang.Object
org.faceless.publisher.ext.SimpleReportConfiguration
- All Implemented Interfaces:
ReportConfiguration
,ResourceFlavor
public class SimpleReportConfiguration
extends Object
implements ResourceFlavor, ReportConfiguration
A simple instance of the ReportConfiguration ResourceFlavor which can be used
to load resource(s) from a Blob
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addResource
(URL2 uri, Blob blob) void
Apply this configuration to the ReportgetObject
(ResourceFlavorDescriptor descriptor, Resource resource, Report report) Return the specified object.void
boolean
supports
(ResourceFlavorDescriptor descriptor) Return true if this ResourceFlavorDescriptor can return an object of the specified type.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.faceless.publisher.resource.ResourceFlavor
isLingering, isSingleUse
-
Constructor Details
-
SimpleReportConfiguration
public SimpleReportConfiguration()- Parameters:
root
- the URI from the factory to load as rootfactory
- the factory containing the resources
-
-
Method Details
-
setRoot
-
getEnvironment
-
addResource
-
getProcessingInstructions
-
supports
Description copied from interface:ResourceFlavor
Return true if this ResourceFlavorDescriptor can return an object of the specified type.- Specified by:
supports
in interfaceResourceFlavor
-
apply
Description copied from interface:ReportConfiguration
Apply this configuration to the Report- Specified by:
apply
in interfaceReportConfiguration
- Throws:
IOException
-
getObject
Description copied from interface:ResourceFlavor
Return the specified object. Note that the flavor must never, ever return a type that wouldn't claim to be supported byResourceFlavor.supports(org.faceless.publisher.resource.ResourceFlavorDescriptor)
- Specified by:
getObject
in interfaceResourceFlavor
- Parameters:
descriptor
- the ResourceFlavorDescriptorresource
- the Resourcereport
- the Report requesting the object
-