1 15 package org.apache.tapestry.asset; 16 17 import java.util.Locale ; 18 19 import org.apache.hivemind.Location; 20 import org.apache.hivemind.Resource; 21 import org.apache.tapestry.IAsset; 22 23 30 public class DefaultAssetFactory implements AssetFactory 31 { 32 33 public IAsset createAsset(Resource baseResource, String path, Locale locale, Location location) 34 { 35 return new ExternalAsset(path, location); 36 } 37 38 public IAsset createAsset(Resource resource, Location location) 39 { 40 return new ExternalAsset(resource.getPath(), location); 41 } 42 43 } | Popular Tags |