POAManagerImpl(POAFactory factory, PIHandler pihandler) { this.factory = factory; factory.addPoaManager(this); this.pihandler = pihandler; myId = factory.newPOAManagerId(); state = State.HOLDING; debug = factory.getORB().poaDebugFlag; explicitStateChange = false; if (debug) { ORBUtility.dprint(this, "Creating POAManagerImpl " + this); } }
public POA default_POA(Servant self) { return factory.getRootPOA(); }
synchronized void addPOA(POA poa) { // XXX This is probably not the correct error if (state.value() == State._INACTIVE) { POASystemException wrapper = factory.getWrapper(); throw wrapper.addPoaInactive(CompletionStatus.COMPLETED_NO); } poas.add(poa); }
public void init(ORB orb) { this.orb = orb; wrapper = POASystemException.get(orb, CORBALogDomains.OA_LIFECYCLE); omgWrapper = OMGSystemException.get(orb, CORBALogDomains.OA_LIFECYCLE); delegateImpl = new DelegateImpl(orb, this); registerRootPOA(); POACurrent poaCurrent = new POACurrent(orb); orb.getLocalResolver().register(ORBConstants.POA_CURRENT_NAME, ClosureFactory.makeConstant(poaCurrent)); }
public POA poa(Servant self) { try { return (POA)orb.peekInvocationInfo().oa(); } catch (EmptyStackException exception){ POA returnValue = factory.lookupPOA(self); if (returnValue != null) { return returnValue; } throw wrapper.noContext( exception ) ; } }
protected void activateServant(ActiveObjectMap.Key key, AOMEntry entry, Servant servant) { setDelegate(servant, key.id); if (orb.shutdownDebugFlag) { System.out.println("Activating object " + servant + " with POA " + poa); } activeObjectMap.putServant(servant, entry); if (Util.instance != null) { POAManagerImpl pm = (POAManagerImpl) poa.the_POAManager(); POAFactory factory = pm.getFactory(); factory.registerPOAForServant(poa, servant); } }
delegateImpl = (DelegateImpl) (poaf.getDelegateImpl()); this.policies = policies; this.poa = poa;
uniquePOAId = getPOAFactory(orb).newPOAId();
public void init(ORB orb) { this.orb = orb; wrapper = POASystemException.get(orb, CORBALogDomains.OA_LIFECYCLE); omgWrapper = OMGSystemException.get(orb, CORBALogDomains.OA_LIFECYCLE); delegateImpl = new DelegateImpl(orb, this); registerRootPOA(); POACurrent poaCurrent = new POACurrent(orb); orb.getLocalResolver().register(ORBConstants.POA_CURRENT_NAME, ClosureFactory.makeConstant(poaCurrent)); }
public POA poa(Servant self) { try { return (POA)orb.peekInvocationInfo().oa(); } catch (EmptyStackException exception){ POA returnValue = factory.lookupPOA(self); if (returnValue != null) { return returnValue; } throw wrapper.noContext( exception ) ; } }
protected void activateServant(ActiveObjectMap.Key key, AOMEntry entry, Servant servant) { setDelegate(servant, key.id); if (orb.shutdownDebugFlag) { System.out.println("Activating object " + servant + " with POA " + poa); } activeObjectMap.putServant(servant, entry); if (Util.instance != null) { POAManagerImpl pm = (POAManagerImpl) poa.the_POAManager(); POAFactory factory = pm.getFactory(); factory.registerPOAForServant(poa, servant); } }
delegateImpl = (DelegateImpl) (poaf.getDelegateImpl()); this.policies = policies; this.poa = poa;
uniquePOAId = getPOAFactory(orb).newPOAId();
POAManagerImpl(POAFactory factory, PIHandler pihandler) { this.factory = factory; factory.addPoaManager(this); this.pihandler = pihandler; myId = factory.newPOAManagerId(); state = State.HOLDING; debug = factory.getORB().poaDebugFlag; explicitStateChange = false; if (debug) { ORBUtility.dprint(this, "Creating POAManagerImpl " + this); } }
poa.manager.getFactory().registerRootPOA();
public POA default_POA(Servant self) { return factory.getRootPOA(); }
synchronized void addPOA(POA poa) { // XXX This is probably not the correct error if (state.value() == State._INACTIVE) { POASystemException wrapper = factory.getWrapper(); throw wrapper.addPoaInactive(CompletionStatus.COMPLETED_NO); } poas.add(poa); }
poa.manager.getFactory().registerRootPOA();
poa = getRootPOA(); while (iter.hasNext())
private void checkState() { while (state.value() != State._ACTIVE) { switch (state.value()) { case State._HOLDING : while (state.value() == State._HOLDING) { countedWait(); } break; case State._DISCARDING : throw factory.getWrapper().poaDiscarding(); case State._INACTIVE : throw factory.getWrapper().poaInactive(); } } }