mylib
to com/example/mylib
. As originally envisioned, this service would simply optimize classpath assets, allowing the URL path for such assets to be shortened (and have a version number added, important for caching); thus the word "alias" makes sense ... it was responsible for creating an "alias" URL shorter than the default "classpath" URL.
Starting in Tapestry 5.2, this changed; all classpath assets must be "aliased" to a shorter URL path. Any URL that can not be shortened is now rejected. This simplifies creating new libraries, but also helps with security concerns, as it limits which portions of the classpath can ever be exposed to the user agent.
Tapestry automatically contributes a number of mappings: for the application root package itself (as alias "app") and for each library (via {@link ComponentClassResolver#getFolderToPackageMapping()});
|
|