fnug.resource
Interface AggregatedResource

All Superinterfaces:
HasLastModifiedBytes, Resource
All Known Subinterfaces:
ResourceCollection
All Known Implementing Classes:
AbstractAggregatedResource, DefaultResourceCollection

public interface AggregatedResource
extends Resource

Extension of Resource for resources that are products of other resource.

Author:
Martin Algesten

Method Summary
 Resource[] getAggregates()
          Aggregates are the resources that actually make up the aggregated resource - that are used to produce the Resource.getBytes().
 String getBasePath()
          Base path for an aggregated resource is set to the owning bundle's name prepended with a slash.
 Resource[] getDependencies()
          Dependencies are resources that are just dependent on for Resource.getLastModified() (along with getAggregates()) but are not part of making the bytes of the aggregate.
 
Methods inherited from interface fnug.resource.Resource
checkModified, findRequiresTags, getBytes, getContentType, getFullPath, getLastModified, getPath, isCss, isJs
 

Method Detail

getBasePath

String getBasePath()
Base path for an aggregated resource is set to the owning bundle's name prepended with a slash. That is for a aggregated resource beloning to mybundle, the base path with be mybundle/.

Specified by:
getBasePath in interface Resource
Returns:
Base path part of the resource full path.

getAggregates

Resource[] getAggregates()
Aggregates are the resources that actually make up the aggregated resource - that are used to produce the Resource.getBytes().

Returns:
the resources that are part of producing the aggregated resource bytes.

getDependencies

Resource[] getDependencies()
Dependencies are resources that are just dependent on for Resource.getLastModified() (along with getAggregates()) but are not part of making the bytes of the aggregate.

Returns:
the dependencies used only for last modified date, not bytes.


Copyright © 2012. All Rights Reserved.