protected void deactivateHelper(ActiveObjectMap.Key key, AOMEntry entry, Servant s) throws ObjectNotActive, WrongPolicy { // Default does nothing, but the USE_SERVANT_MANAGER case must handle etherealization activeObjectMap.remove(key); if (Util.instance != null) { POAManagerImpl pm = (POAManagerImpl) poa.the_POAManager(); POAFactory factory = pm.getFactory(); factory.unregisterPOAForServant(poa, s); } }
public static ActiveObjectMap create(POAImpl poa, boolean multipleIDsAllowed) { if (multipleIDsAllowed) return new MultipleObjectMap(poa); else return new SingleObjectMap(poa); }
protected Servant internalIdToServant(byte[] id) { ActiveObjectMap.Key key = new ActiveObjectMap.Key(id); return internalKeyToServant(key); }
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 void deactivateHelper(ActiveObjectMap.Key key, AOMEntry entry, Servant servant) throws ObjectNotActive, WrongPolicy { if (activator == null) throw poa.invocationWrapper().poaNoServantManager(); Etherealizer eth = new Etherealizer(this, key, entry, servant, poa.getDebug()); entry.startEtherealize(eth); }
POAPolicyMediatorBase_R(Policies policies, POAImpl poa) { super(policies, poa); // assert policies.retainServants() && policies.useActiveObjectMapOnly() if (!policies.retainServants()) throw poa.invocationWrapper().policyMediatorBadPolicyInFactory(); activeObjectMap = ActiveObjectMap.create(poa, !isUnique); }
public Servant deactivateObject(byte[] id) throws ObjectNotActive, WrongPolicy { ActiveObjectMap.Key key = new ActiveObjectMap.Key(id); return deactivateObject(key); }
public Policy getEffectivePolicy(int type) { return mediator.getPolicies().get_effective_policy(type); }
/** * <code>create_implicit_activation_policy</code> <b>Section 3.3.8.5</b> */ public ImplicitActivationPolicy create_implicit_activation_policy(ImplicitActivationPolicyValue value) { return new ImplicitActivationPolicyImpl(value); }
/** * <code>create_servant_retention_policy</code> <b>Section 3.3.8.5</b> */ public ServantRetentionPolicy create_servant_retention_policy(ServantRetentionPolicyValue value) { return new ServantRetentionPolicyImpl(value); }
/** * <code>create_lifespan_policy</code> <b>Section 3.3.8.5</b> */ public LifespanPolicy create_lifespan_policy(LifespanPolicyValue value) { return new LifespanPolicyImpl(value); }
/** * <code>create_id_uniqueness_policy</code> <b>Section 3.3.8.5</b> */ public IdUniquenessPolicy create_id_uniqueness_policy(IdUniquenessPolicyValue value) { return new IdUniquenessPolicyImpl(value); }
/** * <code>create_id_assignment_policy</code> <b>Section 3.3.8.5</b> */ public IdAssignmentPolicy create_id_assignment_policy(IdAssignmentPolicyValue value) { return new IdAssignmentPolicyImpl(value); }
protected void deactivateHelper(ActiveObjectMap.Key key, AOMEntry entry, Servant s) throws ObjectNotActive, WrongPolicy { // Default does nothing, but the USE_SERVANT_MANAGER case must handle etherealization activeObjectMap.remove(key); if (Util.instance != null) { POAManagerImpl pm = (POAManagerImpl) poa.the_POAManager(); POAFactory factory = pm.getFactory(); factory.unregisterPOAForServant(poa, s); } }
public void deactivateHelper(ActiveObjectMap.Key key, AOMEntry entry, Servant servant) throws ObjectNotActive, WrongPolicy { if (activator == null) throw poa.invocationWrapper().poaNoServantManager(); Etherealizer eth = new Etherealizer(this, key, entry, servant, poa.getDebug()); entry.startEtherealize(eth); }
POAPolicyMediatorBase_R(Policies policies, POAImpl poa) { super(policies, poa); // assert policies.retainServants() && policies.useActiveObjectMapOnly() if (!policies.retainServants()) throw poa.invocationWrapper().policyMediatorBadPolicyInFactory(); activeObjectMap = ActiveObjectMap.create(poa, !isUnique); }
public static ActiveObjectMap create(POAImpl poa, boolean multipleIDsAllowed) { if (multipleIDsAllowed) return new MultipleObjectMap(poa); else return new SingleObjectMap(poa); }
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); }
public Policy getEffectivePolicy(int type) { return mediator.getPolicies().get_effective_policy(type); }