Module  java.corba

Interface ServantLocator

  • All Superinterfaces:
    IDLEntityObjectSerializableServantLocatorOperationsServantManagerServantManagerOperations
    所有已知实现类:
    _ServantLocatorStub


    public interface ServantLocator
    extends ServantLocatorOperations, ServantManager, IDLEntity
    当POA具有NON_RETAIN策略时,它使用ServantLocator的servant管理器。 因为POA知道这位仆人经理返回的仆人只能用于一个请求,它可以为仆人经理的业务提供额外的信息,仆人经理的一对操作可能会合作做一些不同于ServantActivator的事情。 当POA使用ServantLocator接口,在对preinvoke返回的servant进行操作调用后,POA将在servant管理器上调用postinvoke,传递ObjectId值和Servant值作为参数(等等)。 此功能可用于强制与POA关联的对象的所有请求都由仆人管理器进行调解。