Search in sources :

Example 1 with ExternalUrlAssetFactory

use of org.apache.tapestry5.internal.services.ExternalUrlAssetFactory in project tapestry-5 by apache.

the class AssetsModule method configureStandardAssetFactories.

@Contribute(AssetSource.class)
public void configureStandardAssetFactories(MappedConfiguration<String, AssetFactory> configuration, @ContextProvider AssetFactory contextAssetFactory, @ClasspathProvider AssetFactory classpathAssetFactory) {
    configuration.add(AssetConstants.CONTEXT, contextAssetFactory);
    configuration.add(AssetConstants.CLASSPATH, classpathAssetFactory);
    configuration.add(AssetConstants.HTTP, new ExternalUrlAssetFactory(AssetConstants.HTTP));
    configuration.add(AssetConstants.HTTPS, new ExternalUrlAssetFactory(AssetConstants.HTTPS));
    configuration.add(AssetConstants.FTP, new ExternalUrlAssetFactory(AssetConstants.FTP));
    configuration.add(AssetConstants.PROTOCOL_RELATIVE, new ExternalUrlAssetFactory(AssetConstants.PROTOCOL_RELATIVE));
}
Also used : ExternalUrlAssetFactory(org.apache.tapestry5.internal.services.ExternalUrlAssetFactory) Contribute(org.apache.tapestry5.ioc.annotations.Contribute)

Aggregations

ExternalUrlAssetFactory (org.apache.tapestry5.internal.services.ExternalUrlAssetFactory)1 Contribute (org.apache.tapestry5.ioc.annotations.Contribute)1