src/share/classes/com/sun/corba/se/impl/oa/poa/POAPolicyMediatorBase_R.java

changeset 371
e324dfb90c9e
parent 230
34af2070439b
child 748
6845b95cba6b
equal deleted inserted replaced
334:66c7161ee588 371:e324dfb90c9e
1 /* 1 /*
2 * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this 7 * published by the Free Software Foundation. Oracle designates this
91 " with POA " + poa); 91 " with POA " + poa);
92 } 92 }
93 93
94 activeObjectMap.putServant( servant, entry ) ; 94 activeObjectMap.putServant( servant, entry ) ;
95 95
96 if (Util.instance != null) { 96 if (Util.isInstanceDefined()) {
97 POAManagerImpl pm = (POAManagerImpl)poa.the_POAManager() ; 97 POAManagerImpl pm = (POAManagerImpl)poa.the_POAManager() ;
98 POAFactory factory = pm.getFactory() ; 98 POAFactory factory = pm.getFactory() ;
99 factory.registerPOAForServant(poa, servant); 99 factory.registerPOAForServant(poa, servant);
100 } 100 }
101 } 101 }
127 // Default does nothing, but the USE_SERVANT_MANAGER case 127 // Default does nothing, but the USE_SERVANT_MANAGER case
128 // must handle etherealization 128 // must handle etherealization
129 129
130 activeObjectMap.remove(key); 130 activeObjectMap.remove(key);
131 131
132 if (Util.instance != null) { 132 if (Util.isInstanceDefined()) {
133 POAManagerImpl pm = (POAManagerImpl)poa.the_POAManager() ; 133 POAManagerImpl pm = (POAManagerImpl)poa.the_POAManager() ;
134 POAFactory factory = pm.getFactory() ; 134 POAFactory factory = pm.getFactory() ;
135 factory.unregisterPOAForServant(poa, s); 135 factory.unregisterPOAForServant(poa, s);
136 } 136 }
137 } 137 }

mercurial