summaryrefslogtreecommitdiff
path: root/java/test/Ice/inheritance/InitialI.java
blob: 86453613e285d16250a3f7c27ef39608dae8900f (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
// **********************************************************************
//
// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************

public final class InitialI extends Test._InitialDisp
{
    public
    InitialI(Ice.ObjectAdapter adapter)
    {
        _adapter = adapter;
        _ca = Test.MA.CAPrxHelper.uncheckedCast(
            _adapter.addWithUUID(new CAI()));
        _cb = Test.MB.CBPrxHelper.uncheckedCast(
            _adapter.addWithUUID(new CBI()));
        _cc = Test.MA.CCPrxHelper.uncheckedCast(
            _adapter.addWithUUID(new CCI()));
        _cd = Test.MA.CDPrxHelper.uncheckedCast(
            _adapter.addWithUUID(new CDI()));
        _ia = Test.MA.IAPrxHelper.uncheckedCast(
            _adapter.addWithUUID(new IAI()));
        _ib1 = Test.MB.IB1PrxHelper.uncheckedCast(
            _adapter.addWithUUID(new IB1I()));
        _ib2 = Test.MB.IB2PrxHelper.uncheckedCast(
            _adapter.addWithUUID(new IB2I()));
        _ic = Test.MA.ICPrxHelper.uncheckedCast(
            _adapter.addWithUUID(new ICI()));
    }

    public Test.MA.CAPrx
    caop(Ice.Current current)
    {
        return _ca;
    }

    public Test.MB.CBPrx
    cbop(Ice.Current current)
    {
        return _cb;
    }

    public Test.MA.CCPrx
    ccop(Ice.Current current)
    {
        return _cc;
    }

    public Test.MA.CDPrx
    cdop(Ice.Current current)
    {
        return _cd;
    }

    public Test.MA.IAPrx
    iaop(Ice.Current current)
    {
        return _ia;
    }

    public Test.MB.IB1Prx
    ib1op(Ice.Current current)
    {
        return _ib1;
    }

    public Test.MB.IB2Prx
    ib2op(Ice.Current current)
    {
        return _ib2;
    }

    public Test.MA.ICPrx
    icop(Ice.Current current)
    {
        return _ic;
    }

    public void
    shutdown(Ice.Current current)
    {
        _adapter.getCommunicator().shutdown();
    }

    private Ice.ObjectAdapter _adapter;
    private Test.MA.CAPrx _ca;
    private Test.MB.CBPrx _cb;
    private Test.MA.CCPrx _cc;
    private Test.MA.CDPrx _cd;
    private Test.MA.IAPrx _ia;
    private Test.MB.IB1Prx _ib1;
    private Test.MB.IB2Prx _ib2;
    private Test.MA.ICPrx _ic;
}