public class ClasspathAssetAliasManagerImpl extends Object implements ClasspathAssetAliasManager
Constructor and Description |
---|
ClasspathAssetAliasManagerImpl(Map<String,String> configuration)
Configuration is a map of aliases (short names) to complete names.
|
Modifier and Type | Method and Description |
---|---|
AssetAlias |
extractAssetAlias(Resource resource)
Takes a classpath resource and determines the proper alias for it based on the mappings contributed to the service.
|
Map<String,String> |
getMappings()
Returns the mappings used by the service: the keys are the folder aliases (i.e, "corelib")
and the values are the corresponding paths (i.e., "org/apache/tapestry5/corelib").
|
public ClasspathAssetAliasManagerImpl(Map<String,String> configuration)
public AssetAlias extractAssetAlias(Resource resource)
ClasspathAssetAliasManager
extractAssetAlias
in interface ClasspathAssetAliasManager
resource
- classpath resourcepublic Map<String,String> getMappings()
ClasspathAssetAliasManager
ClasspathAssetRequestHandler
s can be created automatically
for each mapping.getMappings
in interface ClasspathAssetAliasManager
5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.