daily pastebin goal
6%
SHARE
TWEET

DelegateLogger abstract class

a guest Aug 20th, 2016 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. abstract class DelegateLogger implements Logger {
  2.  
  3.     private Logger delegate;
  4.  
  5.     public DelegateLogger() {
  6.        this(null);
  7.     }
  8.  
  9.     public DelegateLogger(Logger delegate) {
  10.         this.delegate = delegate;
  11.     }
  12.  
  13.     protected void delegateLog(String log){
  14.        if(this.delegate != null) {
  15.            this.delegate.log(log);
  16.         }
  17.     }
  18.  
  19. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top