use of org.osgi.service.blueprint.reflect.RegistrationListener in project aries by apache.
the class RecipeBuilder method createServiceRecipe.
private Recipe createServiceRecipe(ServiceMetadata serviceExport) {
CollectionRecipe listenersRecipe = new CollectionRecipe(getName(null), ArrayList.class, Object.class.getName());
if (serviceExport.getRegistrationListeners() != null) {
for (RegistrationListener listener : serviceExport.getRegistrationListeners()) {
listenersRecipe.add(createRecipe(listener));
}
}
ServiceRecipe recipe = new ServiceRecipe(getName(serviceExport.getId()), blueprintContainer, serviceExport, getValue(serviceExport.getServiceComponent(), null), listenersRecipe, getServicePropertiesRecipe(serviceExport), getDependencies(serviceExport));
return recipe;
}
Aggregations