use of org.apache.felix.service.command.Converter in project karaf by apache.
the class SecuredCommandProcessorImpl method trackConverters.
private ServiceTracker<Converter, Converter> trackConverters(BundleContext context) {
return new ServiceTracker<Converter, Converter>(context, Converter.class.getName(), null) {
@Override
public Converter addingService(ServiceReference<Converter> reference) {
Converter converter = super.addingService(reference);
addConverter(converter);
return converter;
}
@Override
public void removedService(ServiceReference<Converter> reference, Converter service) {
removeConverter(service);
super.removedService(reference, service);
}
};
}
Aggregations