Javadoc
Gets an asset that is used with, or injected into, a component, that will be exposed to the client.
This encapsulates the new, in 5.4, standard that assets should all be stored in (sub-folders of)
META-INF/assets/library-name/
.
This is the preferred location in 5.4, with compatibility for 5.3 that allows assets to be stored on the classpath
alongside Java classes and server-only resources such as templates and message catalogs.
When resolving a resource in a component that is subclass, the point of injection is the class which contains
the injecting annotation (e.g.,
org.apache.tapestry5.ioc.annotations.Inject with
org.apache.tapestry5.annotations.Path,
or
org.apache.tapestry5.annotations.Import). In other words, the library name for the library containing the class,
rather than the library name of the instantiated subclass (which can be different).