Class SimpleResource
- java.lang.Object
-
- org.pentaho.reporting.libraries.resourceloader.SimpleResource
-
- All Implemented Interfaces:
Serializable
,Resource
public class SimpleResource extends Object implements Resource
A simple resource with only a single dependency.- Author:
- Thomas Morgner
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SimpleResource(ResourceKey key, Object value, Class targetType, long version)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceKey[]
getDependencies()
The primary source is also included in this set.Object
getResource()
ResourceKey
getSource()
Class
getTargetType()
long
getVersion(ResourceKey key)
boolean
isTemporaryResult()
-
-
-
Constructor Detail
-
SimpleResource
public SimpleResource(ResourceKey key, Object value, Class targetType, long version)
-
-
Method Detail
-
getResource
public Object getResource()
- Specified by:
getResource
in interfaceResource
-
getVersion
public long getVersion(ResourceKey key)
- Specified by:
getVersion
in 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:
getDependencies
in interfaceResource
- Returns:
-
getSource
public ResourceKey getSource()
-
getTargetType
public Class getTargetType()
- Specified by:
getTargetType
in interfaceResource
-
isTemporaryResult
public boolean isTemporaryResult()
- Specified by:
isTemporaryResult
in interfaceResource
-
-