Hello All,
I have a simple example that required calling same constructor with
two different parameters. I'm wondering what is the best way to re-
factor these codes to use Guice.
Thanks in advance,
Sei
---- snip---
public class ServiceImpl {
private int mMode;
public ServiceImpl(int mode) {
mMode = mode;
}
public void go() {
System.out.println("mode = "+ mMode);
}
public static void main(String[] args) {
ServiceImpl service1 = new ServiceImpl(1);
ServiceImpl service2 = new ServiceImpl(2);
}
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"google-guice" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-guice?hl=en
-~----------~----~----~----~------~----~------~--~---