aboutsummaryrefslogtreecommitdiffstats
path: root/tests/multiIncremental/pr220255/base/ClientCode.java
blob: 8cd4287076770a5c8952131b5d83ea2e968cb0db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
@NeedsXYZ
public class ClientCode
{

    MyInterface __Interface__ = null;
    
    ClientProxy specialConfigProxy = new ClientProxy();
    
    
    void doIt() {
        System.out.println("hold onto your hat...");
        System.out.println("the answer is:"+ __Interface__.doB(42));   // direct Call is intercepted here
        
        System.out.println("and now, "
                          + specialConfigProxy.additionalValueServiceForTheCustomer()
                          );                                         //   indirect call is intercepted in the proxy
    }
    
    
    
    public static void main(String[] args) {
        
        new ClientCode().doIt();
    
    }
}