public Servant deactivateObject(byte[] id) throws ObjectNotActive, WrongPolicy { ActiveObjectMap.Key key = new ActiveObjectMap.Key(id); return deactivateObject(key); }
protected Servant internalIdToServant(byte[] id) { ActiveObjectMap.Key key = new ActiveObjectMap.Key(id); return internalKeyToServant(key); }
try byte[] id = newSystemId(); activateObject(id, servant); return id;
public final void activateObject(byte[] id, Servant servant) throws WrongPolicy, ServantAlreadyActive, ObjectAlreadyActive { if (isUnique && activeObjectMap.contains(servant)) throw new ServantAlreadyActive(); ActiveObjectMap.Key key = new ActiveObjectMap.Key(id); // Note that this can't happen for system assigned IDs since the POA never hands out the same ID. However, we // make this redundant check here to share the code. if (activeObjectMap.containsKey(key)) throw new ObjectAlreadyActive(); AOMEntry entry = activeObjectMap.get(key); entry.activateObject(); activateServant(key, entry, servant); }
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); } }
public Servant deactivateObject(ActiveObjectMap.Key key) throws ObjectNotActive, WrongPolicy { if (orb.poaDebugFlag) { ORBUtility.dprint(this, "Calling deactivateObject for key " + key); } try { AOMEntry entry = activeObjectMap.get(key); if (entry == null) throw new ObjectNotActive(); Servant s = activeObjectMap.getServant(entry); if (s == null) throw new ObjectNotActive(); if (orb.poaDebugFlag) { System.out.println("Deactivating object " + s + " with POA " + poa); } deactivateHelper(key, entry, s); return s; } finally { if (orb.poaDebugFlag) { ORBUtility.dprint(this, "Exiting deactivateObject"); } } }
try byte[] id = newSystemId(); activateObject(id, servant); return id;
public final void activateObject(byte[] id, Servant servant) throws WrongPolicy, ServantAlreadyActive, ObjectAlreadyActive { if (isUnique && activeObjectMap.contains(servant)) throw new ServantAlreadyActive(); ActiveObjectMap.Key key = new ActiveObjectMap.Key(id); // Note that this can't happen for system assigned IDs since the POA never hands out the same ID. However, we // make this redundant check here to share the code. if (activeObjectMap.containsKey(key)) throw new ObjectAlreadyActive(); AOMEntry entry = activeObjectMap.get(key); entry.activateObject(); activateServant(key, entry, servant); }
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); } }
public Servant deactivateObject(ActiveObjectMap.Key key) throws ObjectNotActive, WrongPolicy { if (orb.poaDebugFlag) { ORBUtility.dprint(this, "Calling deactivateObject for key " + key); } try { AOMEntry entry = activeObjectMap.get(key); if (entry == null) throw new ObjectNotActive(); Servant s = activeObjectMap.getServant(entry); if (s == null) throw new ObjectNotActive(); if (orb.poaDebugFlag) { System.out.println("Deactivating object " + s + " with POA " + poa); } deactivateHelper(key, entry, s); return s; } finally { if (orb.poaDebugFlag) { ORBUtility.dprint(this, "Exiting deactivateObject"); } } }
protected Servant internalIdToServant(byte[] id) { ActiveObjectMap.Key key = new ActiveObjectMap.Key(id); return internalKeyToServant(key); }
public Servant deactivateObject(byte[] id) throws ObjectNotActive, WrongPolicy { ActiveObjectMap.Key key = new ActiveObjectMap.Key(id); return deactivateObject(key); }