I have some problems with @Configurable used together with Spring-DM under Equinox (in an RCP application). I'd like to inject a reference pointing to a bean referenced using osgi:reference (sensorConfigProvider) into a bean not instantiated by Spring (SensorView), but it does not work.
My config:
<context:annotation-config/>
<context:spring-configured/>
<osgi:reference id="sensorConfigProvider" interface="configprovider.ISensorConfigProvider" />
<bean class="ui.SensorView"/>
and the class definition:
@Configurable
public class SensorView extends ViewPart {
@Autowired
private ISensorConfigProvider sensorConfigProvider;
...
}
Am I missing something?



