org.jfree.resourceloader

Class CompoundResource

Implemented Interfaces:
Resource, Serializable

public class CompoundResource
extends java.lang.Object
implements Resource

Creation-Date: 08.04.2006, 14:08:13
Author:
Thomas Morgner

Constructor Summary

CompoundResource(ResourceKey source, DependencyCollector dependencies, Object product)

Method Summary

ResourceKey[]
getDependencies()
The primary source is also included in this set.
Object
getResource()
ResourceKey
getSource()
long
getVersion(ResourceKey key)

Constructor Details

CompoundResource

public CompoundResource(ResourceKey source,
                        DependencyCollector dependencies,
                        Object product)

Method Details

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 interface Resource
Returns:

getResource

public Object getResource()
            throws ResourceException
Specified by:
getResource in interface Resource

getSource

public ResourceKey getSource()
Specified by:
getSource in interface Resource

getVersion

public long getVersion(ResourceKey key)
Specified by:
getVersion in interface Resource