public Servant idToServant(byte[] id) throws WrongPolicy, ObjectNotActive { Servant s = internalIdToServant(id); if (s == null) throw new ObjectNotActive(); else 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(); } } }
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 Servant idToServant(byte[] id) throws WrongPolicy, ObjectNotActive { Servant s = internalIdToServant(id); if (s == null) throw new ObjectNotActive(); else return s; } }
protected java.lang.Object internalGetServant(byte[] id, String operation) throws ForwardRequest { java.lang.Object servant = internalIdToServant(id); if (servant == null) servant = new NullServantImpl(poa.invocationWrapper().nullServant()); return servant; }
protected java.lang.Object internalGetServant(byte[] id, String operation) throws ForwardRequest { java.lang.Object servant = internalIdToServant(id); if (servant == null) servant = new NullServantImpl(poa.invocationWrapper().nullServant()); return servant; }