Search in sources :

Example 1 with DefaultWeftConfig

use of org.commonjava.cdi.util.weft.config.DefaultWeftConfig in project galley by Commonjava.

the class TestCDIProvider method start.

@PostConstruct
public void start() {
    try {
        temp.create();
        cacheProvider = new PartyLineCacheProvider(temp.newFolder(), pathGenerator, eventManager, transferDecorator);
        fileTransportConfig = new FileTransportConfig(temp.newFolder(), pathGenerator);
    } catch (IOException e) {
        Assert.fail("Failed to init temp folder fro file cache.");
    }
    locationExpander = new NoOpLocationExpander();
    locationResolver = new SimpleUrlLocationResolver(locationExpander, transportManager);
    globalHttpConfiguration = new GlobalHttpConfiguration();
    weftConfig = new DefaultWeftConfig();
}
Also used : SimpleUrlLocationResolver(org.commonjava.maven.galley.transport.SimpleUrlLocationResolver) DefaultWeftConfig(org.commonjava.cdi.util.weft.config.DefaultWeftConfig) FileTransportConfig(org.commonjava.maven.galley.filearc.FileTransportConfig) GlobalHttpConfiguration(org.commonjava.maven.galley.transport.htcli.conf.GlobalHttpConfiguration) PartyLineCacheProvider(org.commonjava.maven.galley.cache.partyline.PartyLineCacheProvider) IOException(java.io.IOException) NoOpLocationExpander(org.commonjava.maven.galley.transport.NoOpLocationExpander) PostConstruct(javax.annotation.PostConstruct)

Aggregations

IOException (java.io.IOException)1 PostConstruct (javax.annotation.PostConstruct)1 DefaultWeftConfig (org.commonjava.cdi.util.weft.config.DefaultWeftConfig)1 PartyLineCacheProvider (org.commonjava.maven.galley.cache.partyline.PartyLineCacheProvider)1 FileTransportConfig (org.commonjava.maven.galley.filearc.FileTransportConfig)1 NoOpLocationExpander (org.commonjava.maven.galley.transport.NoOpLocationExpander)1 SimpleUrlLocationResolver (org.commonjava.maven.galley.transport.SimpleUrlLocationResolver)1 GlobalHttpConfiguration (org.commonjava.maven.galley.transport.htcli.conf.GlobalHttpConfiguration)1