¡@

Home 

java Programming Glossary: toemail

Is it bad to use servicelocation instead of constructor injection to avoid writing loads of factory classes

http://stackoverflow.com/questions/1599811/is-it-bad-to-use-servicelocation-instead-of-constructor-injection-to-avoid-writi

e.g. public class EmailSender internal EmailSender string toEmail string subject String body ILogger emailLogger ..... public.. emailLogger public EmailSender Create string toEmail string subject string body return new EmailSender toEmail subject.. toEmail string subject string body return new EmailSender toEmail subject body emailLogger Now the problem with this is that..