public ArtifactIdentifierFileStore(PathKeyFileStore pathKeyFileStore, TemporaryFileProvider temporaryFileProvider) {
super(pathKeyFileStore, temporaryFileProvider, toTransformer(GROUP_PATTERN), toTransformer(NAME_PATTERN));
}
private static Transformer<String, ModuleComponentArtifactMetaData> toTransformer(final String pattern) {
final ResourcePattern resourcePattern = new IvyResourcePattern(pattern);
return new Transformer<String, ModuleComponentArtifactMetaData>() {
public String transform(ModuleComponentArtifactMetaData artifact) {
return resourcePattern.getLocation(artifact).getPath();
}
};
}