Skip to content

Instantly share code, notes, and snippets.

@jhamukul007
Created November 25, 2022 22:10
Show Gist options
  • Save jhamukul007/386b77a28cd0681a42f10946e68322df to your computer and use it in GitHub Desktop.
Save jhamukul007/386b77a28cd0681a42f10946e68322df to your computer and use it in GitHub Desktop.
SystemProxy
import java.util.List;
public class SystemProxy implements System {
System system;
public SystemProxy() {
this.system = new SystemImpl();
}
@Override
public void notifyOnLeave(Employee emp) {
system.notifyOnLeave(emp);
}
@Override
public void autoProjectAllocation(Employee emp, List<Project> projects) {
java.lang.System.out.println("You can't access auto project allocation");
//system.autoProjectAllocation(emp, projects);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment