@Test public void unknown_asset_prefix() { ThreadLocale threadLocale = mockThreadLocale(); Map<String, AssetFactory> configuration = Collections.emptyMap(); replay(); AssetSource source = new AssetSourceImpl(threadLocale, configuration, null, null, tracker); try { source.getAsset(baseResource, "classpath:org/apache/tapestry5/internal/services/SimpleComponent.properties", Locale.UK); unreachable(); } catch (IllegalArgumentException ex) { assertEquals(ex.getMessage(), "Unknown prefix for asset path 'classpath:org/apache/tapestry5/internal/services/SimpleComponent.properties'."); } verify(); }
public Asset getAsset(Resource baseResource, String path, Locale locale) { return getAssetInLocale(baseResource, path, defaulted(locale)); }
AssetSourceImpl extends LockSupport implements AssetSource { public Asset getAsset(Resource baseResource, String path, Locale locale) { return getAssetInLocale(baseResource, path, defaulted(locale)); } }
AssetSourceImpl extends LockSupport implements AssetSource { public Asset getAsset(Resource baseResource, String path, Locale locale) { return getAssetInLocale(baseResource, path, defaulted(locale)); } AssetSourceImpl(ThreadLocale threadLocale,

                           Map<String, AssetFactory> configuration, SymbolSource symbolSource, Logger logger, OperationTracker tracker);  AssetSourceImpl(ThreadLocale threadLocale,

                           Map<String, AssetFactory> configuration, SymbolSource symbolSource, Logger logger, OperationTracker tracker, Request request); }
AssetSourceImpl extends LockSupport implements AssetSource { public Asset getAsset(Resource baseResource, String path, Locale locale) { return getAssetInLocale(baseResource, path, defaulted(locale)); } AssetSourceImpl(ThreadLocale threadLocale,

                           Map<String, AssetFactory> configuration, SymbolSource symbolSource, Logger logger, OperationTracker tracker);  AssetSourceImpl(ThreadLocale threadLocale,

                           Map<String, AssetFactory> configuration, SymbolSource symbolSource, Logger logger, OperationTracker tracker, Request request); @PostInjection void clearCacheWhenResourcesChange(ResourceChangeTracker tracker); Asset getClasspathAsset(String path); Asset getClasspathAsset(String path, Locale locale); Asset getContextAsset(String path, Locale locale); Asset getAsset(Resource baseResource, String path, Locale locale); Resource resourceForPath(String path); Asset getExpandedAsset(String path); Asset getComponentAsset(final ComponentResources resources, final String path, final String libraryName); Asset getUnlocalizedAsset(String path); }
AssetSourceImpl extends LockSupport implements AssetSource { public Asset getAsset(Resource baseResource, String path, Locale locale) { return getAssetInLocale(baseResource, path, defaulted(locale)); } AssetSourceImpl(ThreadLocale threadLocale,

                           Map<String, AssetFactory> configuration, SymbolSource symbolSource, Logger logger, OperationTracker tracker);  AssetSourceImpl(ThreadLocale threadLocale,

                           Map<String, AssetFactory> configuration, SymbolSource symbolSource, Logger logger, OperationTracker tracker, Request request); @PostInjection void clearCacheWhenResourcesChange(ResourceChangeTracker tracker); Asset getClasspathAsset(String path); Asset getClasspathAsset(String path, Locale locale); Asset getContextAsset(String path, Locale locale); Asset getAsset(Resource baseResource, String path, Locale locale); Resource resourceForPath(String path); Asset getExpandedAsset(String path); Asset getComponentAsset(final ComponentResources resources, final String path, final String libraryName); Asset getUnlocalizedAsset(String path);  }