use of org.commonjava.maven.galley.model.FilePatternMatcher in project indy by Commonjava.
the class InfinispanGalleyStorageProvider 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);
transferDecorator = new ChecksummingTransferDecorator(Collections.singleton(TransferOperation.GENERATE), specialPathManager, new Md5GeneratorFactory(), new Sha1GeneratorFactory());
this.cacheProvider = new GridFileSystemCacheProvider(pathGenerator, fileEventManager, transferDecorator, cacheFs);
}
use of org.commonjava.maven.galley.model.FilePatternMatcher 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