public void setDefaultServant(Servant servant) throws WrongPolicy { defaultServant = servant; setDelegate(defaultServant, "DefaultServant".getBytes()); }
protected java.lang.Object internalGetServant(byte[] id, String operation) throws ForwardRequest { Servant servant = internalIdToServant(id); if (servant == null) servant = defaultServant; if (servant == null) throw poa.invocationWrapper().poaNoDefaultServant(); return servant; }
public Servant idToServant(byte[] id) throws WrongPolicy, ObjectNotActive { ActiveObjectMap.Key key = new ActiveObjectMap.Key(id); Servant s = internalKeyToServant(key); if (s == null) if (defaultServant != null) s = defaultServant; if (s == null) throw new ObjectNotActive(); return s; } }
static POAPolicyMediator create(Policies policies, POAImpl poa) { if (policies.retainServants()) { if (policies.useActiveMapOnly()) return new POAPolicyMediatorImpl_R_AOM(policies, poa); else if (policies.useDefaultServant()) return new POAPolicyMediatorImpl_R_UDS(policies, poa); else if (policies.useServantManager()) return new POAPolicyMediatorImpl_R_USM(policies, poa); else throw poa.invocationWrapper().pmfCreateRetain(); } else { if (policies.useDefaultServant()) return new POAPolicyMediatorImpl_NR_UDS(policies, poa); else if (policies.useServantManager()) return new POAPolicyMediatorImpl_NR_USM(policies, poa); else throw poa.invocationWrapper().pmfCreateNonRetain(); } } }
protected java.lang.Object internalGetServant(byte[] id, String operation) throws ForwardRequest { Servant servant = internalIdToServant(id); if (servant == null) servant = defaultServant; if (servant == null) throw poa.invocationWrapper().poaNoDefaultServant(); return servant; }
public Servant idToServant(byte[] id) throws WrongPolicy, ObjectNotActive { ActiveObjectMap.Key key = new ActiveObjectMap.Key(id); Servant s = internalKeyToServant(key); if (s == null) if (defaultServant != null) s = defaultServant; if (s == null) throw new ObjectNotActive(); return s; } }
static POAPolicyMediator create(Policies policies, POAImpl poa) { if (policies.retainServants()) { if (policies.useActiveMapOnly()) return new POAPolicyMediatorImpl_R_AOM(policies, poa); else if (policies.useDefaultServant()) return new POAPolicyMediatorImpl_R_UDS(policies, poa); else if (policies.useServantManager()) return new POAPolicyMediatorImpl_R_USM(policies, poa); else throw poa.invocationWrapper().pmfCreateRetain(); } else { if (policies.useDefaultServant()) return new POAPolicyMediatorImpl_NR_UDS(policies, poa); else if (policies.useServantManager()) return new POAPolicyMediatorImpl_NR_USM(policies, poa); else throw poa.invocationWrapper().pmfCreateNonRetain(); } } }
public void setDefaultServant(Servant servant) throws WrongPolicy { defaultServant = servant; setDelegate(defaultServant, "DefaultServant".getBytes()); }