org.milyn.delivery.doc-files.res-bundling.html Maven / Gradle / Ivy
Resource Bundling
(See the SmooksResourceConfiguration class Javadoc before reading this).
.cdrar files are a Jar format file used to bundle Content Handlers/Resources and .cdrl files (optional).
While Content Delivery Resources can be loaded in the standard way from the classpath, it is thought that
this may be a cleaner way to deliver resources in a production environment.
The following illustration shows the internal structure of a sample .cdrar file.
Sample Configurations
The following are sample .cdrl files from the CNN.com sample.
Sample 1 - serialise-basic.cdrl
This .cdrl file targets some Serialization Units.
From this image you can see there are 3 SmooksResourceConfigurations defined in this archive.
It might occur to you that all 3 definitions are applicable to EMPTY elements on "wml" profile browsers.
To understand how the correct Serialisation Unit is selected, read about
Resource Targeting.
Sample 2 - assembly.cdrl
It targets a number of Assembly Units at some custom sample tags created to pull/scrape
content from the CNN.com homepage source.