this.tracker = new ServiceTracker<TypeConverterLoader, Object>(bundleContext, TypeConverterLoader.class.getName(), this);
}
public Object addingService(ServiceReference<TypeConverterLoader> serviceReference) {
LOG.trace("AddingService: {}", serviceReference);
TypeConverterLoader loader = (TypeConverterLoader) bundleContext.getService(serviceReference);
if (loader != null) {
try {
loader.load(getDelegate());
} catch (Throwable t) {
throw ObjectHelper.wrapRuntimeCamelException(t);
}
}
return loader;