Hello All,
I am new to using iPOJO and wanted to solve a particular problem that I
have already done with native OSGi.
I have a class like this
@Component(managedservice="my.config")
@Provides
@Instantiate
public class MyConfigImpl {
private final Logger log = LoggerFactory.getLogger(this.getClass());
@Property(name="property1")
private String property1;
public String getProperty1() {
return property1;
}
@Updated
public void updated(final Dictionary properties) {
// do something with all the properties recieved
}
}
All I want to do is that apart from getting the properties populated from
the OSGi config, I would like to get a callback on the updated method with
"all" the properties provided in the configuration and not just "
property1".
How can I achieve this?
Any help would be appreciated.
--
Thanks and Regards,
/Thomas Joseph
------------------------------------------------------------
Promote Open Source - Promote Liberty of Ideas and Software.
------------------------------------------------------------