Class CompoundResource
- java.lang.Object
-
- org.pentaho.reporting.libraries.resourceloader.CompoundResource
-
- All Implemented Interfaces:
Serializable,Resource
public class CompoundResource extends Object implements Resource
Creation-Date: 08.04.2006, 14:08:13- Author:
- Thomas Morgner
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CompoundResource(ResourceKey source, DependencyCollector dependencies, Object product, Class targetType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceKey[]getDependencies()The primary source is also included in this set.ObjectgetResource()ResourceKeygetSource()ClassgetTargetType()longgetVersion(ResourceKey key)booleanisTemporaryResult()
-
-
-
Constructor Detail
-
CompoundResource
public CompoundResource(ResourceKey source, DependencyCollector dependencies, Object product, Class targetType)
-
-
Method Detail
-
getResource
public Object getResource() throws ResourceException
- Specified by:
getResourcein interfaceResource- Throws:
ResourceException
-
getVersion
public long getVersion(ResourceKey key)
- Specified by:
getVersionin interfaceResource
-
getDependencies
public ResourceKey[] getDependencies()
The primary source is also included in this set. The dependencies are given as ResourceKey objects. The keys itself do not hold any state information. The dependencies do not track deep dependencies. So if Resource A depends on Resource B which depends on Resource C, then A only knows about B, not C.- Specified by:
getDependenciesin interfaceResource- Returns:
-
getSource
public ResourceKey getSource()
-
getTargetType
public Class getTargetType()
- Specified by:
getTargetTypein interfaceResource
-
isTemporaryResult
public boolean isTemporaryResult()
- Specified by:
isTemporaryResultin interfaceResource
-
-