aQute.bnd.osgi.resource.RequirementBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of biz.aQute.bnd Show documentation
Show all versions of biz.aQute.bnd Show documentation
This command line utility is the Swiss army knife of OSGi. It provides you with a breadth of tools to understand and manage OSGi based systems. This project basically uses bndlib.
package aQute.bnd.osgi.resource;
import org.osgi.resource.Requirement;
import org.osgi.resource.Resource;
public class RequirementBuilder extends CapReqBuilder {
public RequirementBuilder(Resource resource, String namespace) {
super(resource, namespace);
}
public RequirementBuilder(String namespace) {
super(namespace);
}
public Requirement build() {
return super.buildRequirement();
}
public Requirement synthetic() {
return super.buildSyntheticRequirement();
}
public RequirementBuilder addFilter(String filter) {
addDirective("filter", filter);
return this;
}
public RequirementBuilder addFilter(FilterBuilder filter) {
addDirective("filter", filter.toString());
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy