corba/src/share/classes/com/sun/corba/se/impl/oa/poa/POAFactory.java
author ohair
Tue, 25 May 2010 15:52:11 -0700
changeset 5555 b2b5ed3f0d0d
parent 3291 805a72a26925
permissions -rw-r--r--
6943119: Rebrand source copyright notices Reviewed-by: darcy
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4
02bb8761fcce Initial load
duke
parents:
diff changeset
     1
/*
5555
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 3291
diff changeset
     2
 * Copyright (c) 2002, 2009, Oracle and/or its affiliates. All rights reserved.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
02bb8761fcce Initial load
duke
parents:
diff changeset
     4
 *
02bb8761fcce Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
02bb8761fcce Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5555
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 3291
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
4
02bb8761fcce Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5555
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 3291
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
    10
 *
02bb8761fcce Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
02bb8761fcce Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
02bb8761fcce Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
02bb8761fcce Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
02bb8761fcce Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
02bb8761fcce Initial load
duke
parents:
diff changeset
    16
 *
02bb8761fcce Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
02bb8761fcce Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
02bb8761fcce Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
02bb8761fcce Initial load
duke
parents:
diff changeset
    20
 *
5555
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 3291
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 3291
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 3291
diff changeset
    23
 * questions.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
    24
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
    25
02bb8761fcce Initial load
duke
parents:
diff changeset
    26
package com.sun.corba.se.impl.oa.poa ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    27
02bb8761fcce Initial load
duke
parents:
diff changeset
    28
import java.util.Set ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    29
import java.util.HashSet ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    30
import java.util.Collections ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    31
import java.util.Iterator ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    32
import java.util.Map ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    33
import java.util.WeakHashMap ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    34
02bb8761fcce Initial load
duke
parents:
diff changeset
    35
import org.omg.CORBA.OBJECT_NOT_EXIST ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    36
import org.omg.CORBA.TRANSIENT ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    37
02bb8761fcce Initial load
duke
parents:
diff changeset
    38
import org.omg.CORBA.ORBPackage.InvalidName ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    39
02bb8761fcce Initial load
duke
parents:
diff changeset
    40
import org.omg.PortableServer.Servant ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    41
import org.omg.PortableServer.POA ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    42
import org.omg.PortableServer.POAManager ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    43
02bb8761fcce Initial load
duke
parents:
diff changeset
    44
import com.sun.corba.se.spi.oa.ObjectAdapter ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    45
import com.sun.corba.se.spi.oa.ObjectAdapterFactory ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    46
02bb8761fcce Initial load
duke
parents:
diff changeset
    47
import com.sun.corba.se.spi.ior.ObjectAdapterId ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    48
02bb8761fcce Initial load
duke
parents:
diff changeset
    49
import com.sun.corba.se.spi.orb.ORB ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    50
02bb8761fcce Initial load
duke
parents:
diff changeset
    51
import com.sun.corba.se.spi.orbutil.closure.Closure ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    52
import com.sun.corba.se.spi.orbutil.closure.ClosureFactory ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    53
02bb8761fcce Initial load
duke
parents:
diff changeset
    54
import com.sun.corba.se.spi.protocol.PIHandler ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    55
02bb8761fcce Initial load
duke
parents:
diff changeset
    56
import com.sun.corba.se.spi.logging.CORBALogDomains ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    57
02bb8761fcce Initial load
duke
parents:
diff changeset
    58
import com.sun.corba.se.impl.logging.POASystemException ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    59
import com.sun.corba.se.impl.logging.OMGSystemException ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    60
02bb8761fcce Initial load
duke
parents:
diff changeset
    61
import com.sun.corba.se.impl.orbutil.ORBConstants ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    62
02bb8761fcce Initial load
duke
parents:
diff changeset
    63
import com.sun.corba.se.impl.oa.poa.POAManagerImpl ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    64
02bb8761fcce Initial load
duke
parents:
diff changeset
    65
public class POAFactory implements ObjectAdapterFactory
02bb8761fcce Initial load
duke
parents:
diff changeset
    66
{
02bb8761fcce Initial load
duke
parents:
diff changeset
    67
    // Maps servants to POAs for deactivating servants when unexportObject is called.
02bb8761fcce Initial load
duke
parents:
diff changeset
    68
    // Maintained by POAs activate_object and deactivate_object.
02bb8761fcce Initial load
duke
parents:
diff changeset
    69
    private Map exportedServantsToPOA = new WeakHashMap();
02bb8761fcce Initial load
duke
parents:
diff changeset
    70
02bb8761fcce Initial load
duke
parents:
diff changeset
    71
    private Set poaManagers ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    72
    private int poaManagerId ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    73
    private int poaId ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    74
    private POAImpl rootPOA ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    75
    private DelegateImpl delegateImpl;
02bb8761fcce Initial load
duke
parents:
diff changeset
    76
    private ORB orb ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    77
    private POASystemException wrapper ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    78
    private OMGSystemException omgWrapper ;
2664
a0a22a8f16bd 6372405: Server thread hangs when fragments don't complete because of connection abort
tbell
parents: 4
diff changeset
    79
    private boolean isShuttingDown = false;
4
02bb8761fcce Initial load
duke
parents:
diff changeset
    80
02bb8761fcce Initial load
duke
parents:
diff changeset
    81
    public POASystemException getWrapper()
02bb8761fcce Initial load
duke
parents:
diff changeset
    82
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
    83
        return wrapper ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    84
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
    85
02bb8761fcce Initial load
duke
parents:
diff changeset
    86
    /** All object adapter factories must have a no-arg constructor.
02bb8761fcce Initial load
duke
parents:
diff changeset
    87
    */
02bb8761fcce Initial load
duke
parents:
diff changeset
    88
    public POAFactory()
02bb8761fcce Initial load
duke
parents:
diff changeset
    89
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
    90
        poaManagers = Collections.synchronizedSet(new HashSet(4));
02bb8761fcce Initial load
duke
parents:
diff changeset
    91
        poaManagerId = 0 ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    92
        poaId = 0 ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    93
        rootPOA = null ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    94
        delegateImpl = null ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    95
        orb = null ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    96
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
    97
02bb8761fcce Initial load
duke
parents:
diff changeset
    98
    public synchronized POA lookupPOA (Servant servant)
02bb8761fcce Initial load
duke
parents:
diff changeset
    99
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   100
        return (POA)exportedServantsToPOA.get(servant);
02bb8761fcce Initial load
duke
parents:
diff changeset
   101
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   102
02bb8761fcce Initial load
duke
parents:
diff changeset
   103
    public synchronized void registerPOAForServant(POA poa, Servant servant)
02bb8761fcce Initial load
duke
parents:
diff changeset
   104
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   105
        exportedServantsToPOA.put(servant, poa);
02bb8761fcce Initial load
duke
parents:
diff changeset
   106
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   107
02bb8761fcce Initial load
duke
parents:
diff changeset
   108
    public synchronized void unregisterPOAForServant(POA poa, Servant servant)
02bb8761fcce Initial load
duke
parents:
diff changeset
   109
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   110
        exportedServantsToPOA.remove(servant);
02bb8761fcce Initial load
duke
parents:
diff changeset
   111
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   112
02bb8761fcce Initial load
duke
parents:
diff changeset
   113
// Implementation of ObjectAdapterFactory interface
02bb8761fcce Initial load
duke
parents:
diff changeset
   114
02bb8761fcce Initial load
duke
parents:
diff changeset
   115
    public void init( ORB orb )
02bb8761fcce Initial load
duke
parents:
diff changeset
   116
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   117
        this.orb = orb ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   118
        wrapper = POASystemException.get( orb,
02bb8761fcce Initial load
duke
parents:
diff changeset
   119
            CORBALogDomains.OA_LIFECYCLE ) ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   120
        omgWrapper = OMGSystemException.get( orb,
02bb8761fcce Initial load
duke
parents:
diff changeset
   121
            CORBALogDomains.OA_LIFECYCLE ) ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   122
        delegateImpl = new DelegateImpl( orb, this ) ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   123
        registerRootPOA() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   124
02bb8761fcce Initial load
duke
parents:
diff changeset
   125
        POACurrent poaCurrent = new POACurrent(orb);
02bb8761fcce Initial load
duke
parents:
diff changeset
   126
        orb.getLocalResolver().register( ORBConstants.POA_CURRENT_NAME,
02bb8761fcce Initial load
duke
parents:
diff changeset
   127
            ClosureFactory.makeConstant( poaCurrent ) ) ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   128
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   129
02bb8761fcce Initial load
duke
parents:
diff changeset
   130
    public ObjectAdapter find( ObjectAdapterId oaid )
02bb8761fcce Initial load
duke
parents:
diff changeset
   131
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   132
        POA poa=null;
02bb8761fcce Initial load
duke
parents:
diff changeset
   133
        try {
02bb8761fcce Initial load
duke
parents:
diff changeset
   134
            boolean first = true ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   135
            Iterator iter = oaid.iterator() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   136
            poa = getRootPOA();
02bb8761fcce Initial load
duke
parents:
diff changeset
   137
            while (iter.hasNext()) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   138
                String name = (String)(iter.next()) ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   139
02bb8761fcce Initial load
duke
parents:
diff changeset
   140
                if (first) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   141
                    if (!name.equals( ORBConstants.ROOT_POA_NAME ))
02bb8761fcce Initial load
duke
parents:
diff changeset
   142
                        throw wrapper.makeFactoryNotPoa( name ) ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   143
                    first = false ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   144
                } else {
02bb8761fcce Initial load
duke
parents:
diff changeset
   145
                    poa = poa.find_POA( name, true ) ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   146
                }
02bb8761fcce Initial load
duke
parents:
diff changeset
   147
            }
02bb8761fcce Initial load
duke
parents:
diff changeset
   148
        } catch ( org.omg.PortableServer.POAPackage.AdapterNonExistent ex ){
02bb8761fcce Initial load
duke
parents:
diff changeset
   149
            throw omgWrapper.noObjectAdaptor( ex ) ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   150
        } catch ( OBJECT_NOT_EXIST ex ) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   151
            throw ex;
02bb8761fcce Initial load
duke
parents:
diff changeset
   152
        } catch ( TRANSIENT ex ) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   153
            throw ex;
02bb8761fcce Initial load
duke
parents:
diff changeset
   154
        } catch ( Exception ex ) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   155
            throw wrapper.poaLookupError( ex ) ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   156
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   157
02bb8761fcce Initial load
duke
parents:
diff changeset
   158
        if ( poa == null )
02bb8761fcce Initial load
duke
parents:
diff changeset
   159
            throw wrapper.poaLookupError() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   160
02bb8761fcce Initial load
duke
parents:
diff changeset
   161
        return (ObjectAdapter)poa;
02bb8761fcce Initial load
duke
parents:
diff changeset
   162
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   163
02bb8761fcce Initial load
duke
parents:
diff changeset
   164
    public void shutdown( boolean waitForCompletion )
02bb8761fcce Initial load
duke
parents:
diff changeset
   165
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   166
        // It is important to copy the list of POAManagers first because
02bb8761fcce Initial load
duke
parents:
diff changeset
   167
        // pm.deactivate removes itself from poaManagers!
02bb8761fcce Initial load
duke
parents:
diff changeset
   168
        Iterator managers = null ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   169
        synchronized (this) {
2664
a0a22a8f16bd 6372405: Server thread hangs when fragments don't complete because of connection abort
tbell
parents: 4
diff changeset
   170
            isShuttingDown = true ;
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   171
            managers = (new HashSet(poaManagers)).iterator();
02bb8761fcce Initial load
duke
parents:
diff changeset
   172
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   173
02bb8761fcce Initial load
duke
parents:
diff changeset
   174
        while ( managers.hasNext() ) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   175
            try {
02bb8761fcce Initial load
duke
parents:
diff changeset
   176
                ((POAManager)managers.next()).deactivate(true, waitForCompletion);
02bb8761fcce Initial load
duke
parents:
diff changeset
   177
            } catch ( org.omg.PortableServer.POAManagerPackage.AdapterInactive e ) {}
02bb8761fcce Initial load
duke
parents:
diff changeset
   178
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   179
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   180
02bb8761fcce Initial load
duke
parents:
diff changeset
   181
// Special methods used to manipulate global POA related state
02bb8761fcce Initial load
duke
parents:
diff changeset
   182
02bb8761fcce Initial load
duke
parents:
diff changeset
   183
    public synchronized void removePoaManager( POAManager manager )
02bb8761fcce Initial load
duke
parents:
diff changeset
   184
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   185
        poaManagers.remove(manager);
02bb8761fcce Initial load
duke
parents:
diff changeset
   186
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   187
02bb8761fcce Initial load
duke
parents:
diff changeset
   188
    public synchronized void addPoaManager( POAManager manager )
02bb8761fcce Initial load
duke
parents:
diff changeset
   189
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   190
        poaManagers.add(manager);
02bb8761fcce Initial load
duke
parents:
diff changeset
   191
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   192
02bb8761fcce Initial load
duke
parents:
diff changeset
   193
    synchronized public int newPOAManagerId()
02bb8761fcce Initial load
duke
parents:
diff changeset
   194
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   195
        return poaManagerId++ ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   196
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   197
02bb8761fcce Initial load
duke
parents:
diff changeset
   198
    public void registerRootPOA()
02bb8761fcce Initial load
duke
parents:
diff changeset
   199
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   200
        // We delay the evaluation of makeRootPOA until
02bb8761fcce Initial load
duke
parents:
diff changeset
   201
        // a call to resolve_initial_references( "RootPOA" ).
02bb8761fcce Initial load
duke
parents:
diff changeset
   202
        // The Future guarantees that makeRootPOA is only called once.
02bb8761fcce Initial load
duke
parents:
diff changeset
   203
        Closure rpClosure = new Closure() {
02bb8761fcce Initial load
duke
parents:
diff changeset
   204
            public Object evaluate() {
02bb8761fcce Initial load
duke
parents:
diff changeset
   205
                return POAImpl.makeRootPOA( orb ) ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   206
            }
02bb8761fcce Initial load
duke
parents:
diff changeset
   207
        } ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   208
02bb8761fcce Initial load
duke
parents:
diff changeset
   209
        orb.getLocalResolver().register( ORBConstants.ROOT_POA_NAME,
02bb8761fcce Initial load
duke
parents:
diff changeset
   210
            ClosureFactory.makeFuture( rpClosure ) ) ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   211
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   212
2664
a0a22a8f16bd 6372405: Server thread hangs when fragments don't complete because of connection abort
tbell
parents: 4
diff changeset
   213
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   214
    public synchronized POA getRootPOA()
02bb8761fcce Initial load
duke
parents:
diff changeset
   215
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   216
        if (rootPOA == null) {
2664
a0a22a8f16bd 6372405: Server thread hangs when fragments don't complete because of connection abort
tbell
parents: 4
diff changeset
   217
            // See if we are trying to getRootPOA while shutting down the ORB.
a0a22a8f16bd 6372405: Server thread hangs when fragments don't complete because of connection abort
tbell
parents: 4
diff changeset
   218
            if (isShuttingDown) {
a0a22a8f16bd 6372405: Server thread hangs when fragments don't complete because of connection abort
tbell
parents: 4
diff changeset
   219
                throw omgWrapper.noObjectAdaptor( ) ;
a0a22a8f16bd 6372405: Server thread hangs when fragments don't complete because of connection abort
tbell
parents: 4
diff changeset
   220
            }
a0a22a8f16bd 6372405: Server thread hangs when fragments don't complete because of connection abort
tbell
parents: 4
diff changeset
   221
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   222
            try {
02bb8761fcce Initial load
duke
parents:
diff changeset
   223
                Object obj = orb.resolve_initial_references(
02bb8761fcce Initial load
duke
parents:
diff changeset
   224
                    ORBConstants.ROOT_POA_NAME ) ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   225
                rootPOA = (POAImpl)obj ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   226
            } catch (InvalidName inv) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   227
                throw wrapper.cantResolveRootPoa( inv ) ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   228
            }
02bb8761fcce Initial load
duke
parents:
diff changeset
   229
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   230
02bb8761fcce Initial load
duke
parents:
diff changeset
   231
        return rootPOA;
02bb8761fcce Initial load
duke
parents:
diff changeset
   232
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   233
02bb8761fcce Initial load
duke
parents:
diff changeset
   234
    public org.omg.PortableServer.portable.Delegate getDelegateImpl()
02bb8761fcce Initial load
duke
parents:
diff changeset
   235
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   236
        return delegateImpl ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   237
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   238
02bb8761fcce Initial load
duke
parents:
diff changeset
   239
    synchronized public int newPOAId()
02bb8761fcce Initial load
duke
parents:
diff changeset
   240
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   241
        return poaId++ ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   242
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   243
02bb8761fcce Initial load
duke
parents:
diff changeset
   244
    public ORB getORB()
02bb8761fcce Initial load
duke
parents:
diff changeset
   245
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   246
        return orb ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   247
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   248
}