Class SimpleResource
java.lang.Object
org.pentaho.reporting.libraries.resourceloader.SimpleResource
- All Implemented Interfaces:
Serializable,Resource
A simple resource with only a single dependency.
- Author:
- Thomas Morgner
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleResource(ResourceKey key, Object value, Class targetType, long version) -
Method Summary
Modifier and TypeMethodDescriptionThe primary source is also included in this set.longgetVersion(ResourceKey key) boolean
-
Constructor Details
-
SimpleResource
-
-
Method Details
-
getResource
- Specified by:
getResourcein interfaceResource
-
getVersion
- Specified by:
getVersionin interfaceResource
-
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
-
getTargetType
- Specified by:
getTargetTypein interfaceResource
-
isTemporaryResult
public boolean isTemporaryResult()- Specified by:
isTemporaryResultin interfaceResource
-