summaryrefslogtreecommitdiff
path: root/java/demo/Ice/nested/NestedI.java
blob: 05e50f76eb40d43ee54e65609bb05f72925d4b36 (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
// **********************************************************************
//
// Copyright (c) 2001
// MutableRealms, Inc.
// Huntsville, AL, USA
//
// All Rights Reserved
//
// **********************************************************************

class NestedI extends Nested
{
    NestedI(NestedPrx self)
    {
        _self = self;
    }

    public void
    nested(int level, NestedPrx proxy, Ice.Current current)
    {
        System.out.println("" + level);
        if (--level > 0)
        {
            proxy.nested(level, _self, current.context);
        }
    }

    private NestedPrx _self;
}