Re-injection of a Java collection [message #1695648] |
Mon, 18 May 2015 11:41 |
|
Dear experts,
I have a registry (a Java Collection) of objects which I'd like to inject to a GUI method in order to synchronize the graphical representation of this registry.
package foo.model
public class MyRegistry extends ArrayList<MyRecord> {}
package foo.ui
public class RegistryView {
@PostConstruct postConstruct(Composite parent) { ... }
@Inject
public void updateRegsitry(MyRegistry registry) {
// update the GUI
...
}
}
Currently, I have a component in OSGI-INF/ that declares the context function to provide and persist the registry in the application context.
My method is called and everything is OK, but it seems here that re-injection does not happen when I add new elements nor when the content/status of an existing element changes.
Can you confirm that this is the expected behaviour?
Where could I find detailed information about Eclipse DI re-injection?
Would you suggest a different IoC design here?
Thanks as always for any suggestion.
-Piero
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02638 seconds