Created
October 14, 2017 13:19
-
-
Save mhtmalpani/b914f2947456de084477c487bdccfd49 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CEO extends ChainHandler implements Employee { | |
@Override | |
public void handleRequest(ChainedRequest chainedRequest) { | |
switch (chainedRequest.getRequestType()) { | |
case CONFERENCE: | |
System.out.println("CEO can approve anything"); | |
break; | |
case PURCHASE: | |
System.out.println("CEO can approve anything"); | |
break; | |
default: | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment