285 {
286 if (activator != null)
287 throw poa.invocationWrapper().servantManagerAlreadySet() ;
288
289 if (servantManager instanceof ServantActivator)
290 activator = (ServantActivator)servantManager;
291 else
292 throw poa.invocationWrapper().servantManagerBadType() ;
293 }
294
295 public Servant getDefaultServant() throws NoServant, WrongPolicy
296 {
297 throw new WrongPolicy();
298 }
299
300 public void setDefaultServant( Servant servant ) throws WrongPolicy
301 {
302 throw new WrongPolicy();
303 }
304
305 class Etherealizer extends sun.misc.ManagedLocalsThread {
306 private POAPolicyMediatorImpl_R_USM mediator ;
307 private ActiveObjectMap.Key key ;
308 private AOMEntry entry ;
309 private Servant servant ;
310 private boolean debug ;
311
312
313 public Etherealizer( POAPolicyMediatorImpl_R_USM mediator,
314 ActiveObjectMap.Key key, AOMEntry entry, Servant servant,
315 boolean debug )
316 {
317 this.mediator = mediator ;
318 this.key = key ;
319 this.entry = entry;
320 this.servant = servant;
321 this.debug = debug ;
322 }
323
324 public void run() {
325 if (debug) {
326 ORBUtility.dprint( this, "Calling Etherealizer.run on key " +
327 key ) ;
328 }
329
330 try {
331 try {
332 mediator.activator.etherealize( key.id, mediator.poa, servant,
333 false, mediator.activeObjectMap.hasMultipleIDs( entry ) );
334 } catch (Exception exc) {
335 // ignore all exceptions
336 }
|
285 {
286 if (activator != null)
287 throw poa.invocationWrapper().servantManagerAlreadySet() ;
288
289 if (servantManager instanceof ServantActivator)
290 activator = (ServantActivator)servantManager;
291 else
292 throw poa.invocationWrapper().servantManagerBadType() ;
293 }
294
295 public Servant getDefaultServant() throws NoServant, WrongPolicy
296 {
297 throw new WrongPolicy();
298 }
299
300 public void setDefaultServant( Servant servant ) throws WrongPolicy
301 {
302 throw new WrongPolicy();
303 }
304
305 class Etherealizer extends Thread {
306 private POAPolicyMediatorImpl_R_USM mediator ;
307 private ActiveObjectMap.Key key ;
308 private AOMEntry entry ;
309 private Servant servant ;
310 private boolean debug ;
311
312
313 public Etherealizer( POAPolicyMediatorImpl_R_USM mediator,
314 ActiveObjectMap.Key key, AOMEntry entry, Servant servant,
315 boolean debug )
316 {
317 super(null, null, "Etherealizer-Thread", 0, false);
318 this.mediator = mediator ;
319 this.key = key ;
320 this.entry = entry;
321 this.servant = servant;
322 this.debug = debug ;
323 }
324
325 public void run() {
326 if (debug) {
327 ORBUtility.dprint( this, "Calling Etherealizer.run on key " +
328 key ) ;
329 }
330
331 try {
332 try {
333 mediator.activator.etherealize( key.id, mediator.poa, servant,
334 false, mediator.activeObjectMap.hasMultipleIDs( entry ) );
335 } catch (Exception exc) {
336 // ignore all exceptions
337 }
|