use of org.ops4j.pax.cdi.api.Properties in project aries by apache.
the class OsgiServiceProviderHandler method handleAnnotation.
private void handleAnnotation(AnnotatedElement annotatedElement, final String id, ContextEnricher contextEnricher) {
final OsgiServiceProvider serviceProvider = annotatedElement.getAnnotation(OsgiServiceProvider.class);
Properties properties = annotatedElement.getAnnotation(Properties.class);
final List<String> interfaceNames = extractServiceInterfaces(serviceProvider);
final List<ServiceProperty> serviceProperties = extractProperties(properties);
contextEnricher.addBlueprintContentWriter("OsgiServiceProvider/" + annotatedElement + "/" + id, new XmlWriter() {
@Override
public void write(XMLStreamWriter writer) throws XMLStreamException {
writeService(writer, serviceProperties, interfaceNames, id);
}
});
}
Aggregations