java Programming Glossary: ilogger
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 EmailSender string toEmail string subject String body ILogger emailLogger ..... public class EmailSenderFactory ILogger emailLogger.. ILogger emailLogger ..... public class EmailSenderFactory ILogger emailLogger public EmailSenderFactory ILogger emailLogger this.emailLogger.. ILogger emailLogger public EmailSenderFactory ILogger emailLogger this.emailLogger emailLogger public EmailSender..
Polymorphism and Interfaces in Java (can polymorphism be used to implement interfaces…why?) http://stackoverflow.com/questions/5423125/polymorphism-and-interfaces-in-java-can-polymorphism-be-used-to-implement-inter polymorphic behavior in a logger system interface ILogger public void handleEvent String event class FileLogger implements.. void handleEvent String event class FileLogger implements ILogger public void handleEvent String event write to file class ConsoleLogger.. String event write to file class ConsoleLogger implements ILogger public void handleEvent String event System.out.println event..
|