mixinafBedSheet::ClientAssetProducer
afBedSheet::ClientAssetProducer
Implement to create custom instances of ClientAsset.
Producer instances should be contributed to the ClientAssetProducers service:
@Contribute { serviceType=ClientAssetProducers# }
Void contributeAssetProducers(Configuration config, MyAssetProducer assetProducer) {
config["acme.myAssetProducer"] = assetProducer
}
Asset caching strategies, like Cold Feet, use the ClientAssetProducers service to modify the client URLs of ClientAssets.
- produceAsset
abstract ClientAsset? produceAsset(Uri localUrl)Creates a
ClientAssetfrom the given local URL.Implementors should return
nullif the URL can not be mapped.