I've seen various flavors of this question from other people but still
don't feel like I understand how to solve it. Any input would be
greatly appreciated.
public class CalculatorFactory {
public CalculatorFactory() {
}
// Depending on which group a user belongs to,
// a different type of calculator will be returned
public ICalculator loadCalculator(UserGroup userGroup) {
if (userGroup == UserGroup.BASIS) {
}
}
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---