org.pentaho.reporting.engine.classic.core.modules.parser.base
Class ReportResource

java.lang.Object
  extended by org.pentaho.reporting.libraries.resourceloader.CompoundResource
      extended by org.pentaho.reporting.engine.classic.core.modules.parser.base.ReportResource
All Implemented Interfaces:
Serializable, org.pentaho.reporting.libraries.resourceloader.Resource

public class ReportResource
extends org.pentaho.reporting.libraries.resourceloader.CompoundResource

A resource implementation that tries to clone the provided parse-result so that the cached object is shielded from later modifications.

Author:
Thomas Morgner
See Also:
Serialized Form

Constructor Summary
ReportResource(org.pentaho.reporting.libraries.resourceloader.ResourceKey source, org.pentaho.reporting.libraries.resourceloader.DependencyCollector dependencies, Object product, Class targetType, boolean clone)
           
 
Method Summary
 Object getResource()
           
 boolean isTemporaryResult()
           
 
Methods inherited from class org.pentaho.reporting.libraries.resourceloader.CompoundResource
getDependencies, getSource, getTargetType, getVersion
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportResource

public ReportResource(org.pentaho.reporting.libraries.resourceloader.ResourceKey source,
                      org.pentaho.reporting.libraries.resourceloader.DependencyCollector dependencies,
                      Object product,
                      Class targetType,
                      boolean clone)
Method Detail

isTemporaryResult

public boolean isTemporaryResult()
Specified by:
isTemporaryResult in interface org.pentaho.reporting.libraries.resourceloader.Resource
Overrides:
isTemporaryResult in class org.pentaho.reporting.libraries.resourceloader.CompoundResource

getResource

public Object getResource()
                   throws org.pentaho.reporting.libraries.resourceloader.ResourceException
Specified by:
getResource in interface org.pentaho.reporting.libraries.resourceloader.Resource
Overrides:
getResource in class org.pentaho.reporting.libraries.resourceloader.CompoundResource
Throws:
org.pentaho.reporting.libraries.resourceloader.ResourceException