aQute.bnd.osgi.resource.RequirementImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of biz.aQute.bndlib Show documentation
Show all versions of biz.aQute.bndlib Show documentation
bndlib: A Swiss Army Knife for OSGi
package aQute.bnd.osgi.resource;
import java.util.Map;
import org.osgi.resource.Requirement;
import org.osgi.resource.Resource;
public class RequirementImpl extends CapReq implements Requirement {
static FilterParser fp = new FilterParser();
String msg = null;
RequirementImpl(String namespace, Resource resource, Map directives, Map attributes) {
super(MODE.Requirement, namespace, resource, directives, attributes);
}
public String toString() {
try {
if (msg == null) {
msg = fp.parse(this).toString();
}
return msg;
} catch (Exception e) {
return e.toString();
}
}
}