use of org.apache.felix.ipojo.metadata.Attribute in project felix by apache.
the class TestBadLFCController method getNoFieldController.
private Element getNoFieldController() {
Element elem = new Element("component", "");
elem.addAttribute(new Attribute("classname", clazz));
Element controller = new Element("controller", "");
elem.addElement(controller);
return elem;
}
use of org.apache.felix.ipojo.metadata.Attribute in project felix by apache.
the class TestBadServiceDependencies method getMissingCallbackType.
private Element getMissingCallbackType() {
Element elem = new Element("component", "");
elem.addAttribute(new Attribute("classname", clazz));
// iPOJO cannot determine the specification of this type of dependency.
Element dependency = new Element("requires", "");
dependency.addAttribute(new Attribute("field", "fs"));
Element callback = new Element("callback", "");
// callback.addAttribute(new Attribute("type", "bind")); --> Type missing.
callback.addAttribute(new Attribute("method", "refBind"));
dependency.addElement(callback);
elem.addElement(dependency);
elem.addElement(manipulation);
return elem;
}
use of org.apache.felix.ipojo.metadata.Attribute in project felix by apache.
the class TestBadServiceDependencies method getMissingSpecification.
private Element getMissingSpecification() {
Element elem = new Element("component", "");
elem.addAttribute(new Attribute("classname", clazz));
// iPOJO cannot determine the specification of this type of dependency.
Element dependency = new Element("requires", "");
Element callback = new Element("callback", "");
callback.addAttribute(new Attribute("type", "bind"));
callback.addAttribute(new Attribute("method", "refBind"));
dependency.addElement(callback);
elem.addElement(dependency);
elem.addElement(manipulation);
return elem;
}
use of org.apache.felix.ipojo.metadata.Attribute in project felix by apache.
the class TestBadServiceDependencies method getMissingCallbackMethod.
private Element getMissingCallbackMethod() {
Element elem = new Element("component", "");
elem.addAttribute(new Attribute("classname", clazz));
// iPOJO cannot determine the specification of this type of dependency.
Element dependency = new Element("requires", "");
dependency.addAttribute(new Attribute("field", "fs"));
Element callback = new Element("callback", "");
callback.addAttribute(new Attribute("type", "bind"));
// callback.addAttribute(new Attribute("method", "refBind")); --> Method missing.
dependency.addElement(callback);
elem.addElement(dependency);
elem.addElement(manipulation);
return elem;
}
use of org.apache.felix.ipojo.metadata.Attribute in project felix by apache.
the class TestBadServiceDependencies method getNoField.
private Element getNoField() {
Element elem = new Element("component", "");
elem.addAttribute(new Attribute("classname", clazz));
Element callback = new Element("requires", "");
callback.addAttribute(new Attribute("filter", "(foo=bar)"));
elem.addElement(callback);
elem.addElement(manipulation);
return elem;
}
Aggregations