Reading the quickstart guide, I saw:
DMI:
"Other options for lookupStyle allow you to:obtain objects via the Spring framework, including the ability to use Spring’s “dependency injection” to set up the target object"
I am actually using Guice in the server, and want to use it in a DMI Object.
Specifically, I have two classes: A and B. A is my DMI Class that I point to in a fetch operation in the ds.xml. Class A wants an instance of class B using Guice. So:
class A {
@Inject
A(B b) { }
}
If I understand the quickstart correctly, it was possible if I used Spring,.. but what about Guice? What should I do in order to be able to use Guice with my DMI Objects?
Using smartgwt 4.1p Power.
DMI:
"Other options for lookupStyle allow you to:obtain objects via the Spring framework, including the ability to use Spring’s “dependency injection” to set up the target object"
I am actually using Guice in the server, and want to use it in a DMI Object.
Specifically, I have two classes: A and B. A is my DMI Class that I point to in a fetch operation in the ds.xml. Class A wants an instance of class B using Guice. So:
class A {
@Inject
A(B b) { }
}
If I understand the quickstart correctly, it was possible if I used Spring,.. but what about Guice? What should I do in order to be able to use Guice with my DMI Objects?
Using smartgwt 4.1p Power.
Comment