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

Source

abstract ClientAsset? produceAsset(Uri localUrl)

Creates a ClientAsset from the given local URL.

Returns null if the URL can not be mapped.