(Quick Reference)

assetResourceLocator

Description

This bean implements the ResourceLocator interface, adding one additional method that returns a Resource instance, given an asset's URI

class ExampleService {
  def assetResourceLocator

def someMethod() { Resource testCssResource = assetResourceLocator.findAssetForURI('test.css') } }