Esempio n. 1
0
 @Override
 public void operation1() {
   System.out.println("I am proxy class");
   realSubject.operation1();
 }
Esempio n. 2
0
 private static void consumer(Subject subject) {
   subject.operation1();
   subject.operation2("ZJ");
 }