use of org.commonjava.maven.galley.config.TransportManagerConfig in project galley by Commonjava.
the class EmbeddableCDIProducer method postConstruct.
@PostConstruct
public void postConstruct() {
fileEventManager = new NoOpFileEventManager();
transferDecorator = new NoOpTransferDecorator();
pathGenerator = new HashedLocationPathGenerator();
nfc = new MemoryNotFoundCache();
// locationExpander = new NoOpLocationExpander();
// locationResolver = new SimpleUrlLocationResolver( locationExpander, transportManager );
transportManagerConfig = new TransportManagerConfig();
passwordManager = new MemoryPasswordManager();
http = new HttpImpl(passwordManager);
objectMapper = new ObjectMapper();
objectMapper.registerModules(new ProjectVersionRefSerializerModule());
pluginDefaults = new StandardMaven350PluginDefaults();
pluginImplications = new StandardMavenPluginImplications(xml);
}
use of org.commonjava.maven.galley.config.TransportManagerConfig in project indy by Commonjava.
the class DefaultGalleyStorageProvider method setup.
@PostConstruct
public void setup() {
SpecialPathInfo infoSpi = SpecialPathInfo.from(new FilePatternMatcher(".+\\.info")).setDecoratable(false).setDeletable(false).setListable(false).setPublishable(false).setRetrievable(false).setStorable(false).build();
specialPathManager.registerSpecialPathInfo(infoSpi);
if (specialPathSetProducers != null) {
specialPathSetProducers.forEach(producer -> {
logger.trace("Adding special paths from: {}", producer.getClass().getName());
specialPathManager.registerSpecialPathSet(producer.getSpecialPathSet());
});
}
setupTransferDecoratorPipeline();
setupCacheProviderFactory();
// TODO: Tie this into a config file!
transportManagerConfig = new TransportManagerConfig();
}
Aggregations