aQute.p2.api.ArtifactProvider Maven / Gradle / Ivy
package aQute.p2.api;
import java.util.List;
import java.util.stream.Collectors;
/**
* Provide P2 artifacts
*/
public interface ArtifactProvider {
/**
* Answer bundles and features
*/
List getAllArtifacts() throws Exception;
default List getBundles() throws Exception {
return getAllArtifacts().stream()
.filter(a -> a.classifier == Classifier.BUNDLE)
.collect(Collectors.toList());
}
default List getFeatures() throws Exception {
return getAllArtifacts().stream()
.filter(a -> a.classifier == Classifier.FEATURE)
.collect(Collectors.toList());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy