|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AssetSource
Used to find or create an Asset with a given path.
TapestryModule.contributeAssetSource(org.apache.tapestry.ioc.MappedConfiguration,
AssetFactory, AssetFactory)| Method Summary | |
|---|---|
Asset |
getAsset(Resource baseResource,
String path,
Locale locale)
Finds the asset. |
Asset |
getClasspathAsset(String path)
Obtains a classpath alias in the current locale (as defined by the ThreadLocale service). |
Asset |
getClasspathAsset(String path,
Locale locale)
Convienience for finding assets on the classpath. |
| Method Detail |
|---|
Asset getAsset(Resource baseResource,
String path,
Locale locale)
baseResource - base resource for computing relative paths, or null to search the classpathpath - relative to the base resourcelocale - locale to localize the final resource to, or null for the thread's current locale
RuntimeException - if the asset can not be found
Asset getClasspathAsset(String path,
Locale locale)
path - path to the base resource, relative to classpath rootlocale - to localize the resource to
Asset getClasspathAsset(String path)
ThreadLocale service).
path -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||