public class ActivationID extends Object implements Serializable
ActivationID的实例)包含激活对象所需的几个信息:
可以通过用激活系统注册对象来获得对象的激活标识符。 注册是以几种方式完成的:
Activatable.register方法 Activatable函数(它接受三个参数,两个寄存器和导出对象,以及 Activatable.exportObject描述符,对象和端口作为参数的第一个Activatable.exportObject方法; 这种方法都注册和导出对象。 Activatable , Serialized Form
| Constructor and Description |
|---|
ActivationID(Activator activator)
ActivationID的
ActivationID函数使用一个参数,即激活器,它指定了负责激活与此标识符关联的对象的激活程序的远程引用。
|
public ActivationID(Activator activator)
ActivationID函数采用单个参数,即激活器,它指定负责激活与该标识符相关联的对象的激活器的远程引用。
ActivationID一个实例是全球唯一的。
activator - 引用负责激活对象的激活器
UnsupportedOperationException - 当且仅当此实现不支持激活时
public Remote activate(boolean force) throws ActivationException, UnknownObjectException, RemoteException
force - 如果为true,则在激活对象时强制激活器与组联系(而不是返回缓存引用);
如果为false,则返回缓存值是可以接受的。
ActivationException - 如果激活失败
UnknownObjectException - 如果对象未知
RemoteException - 如果远程调用失败
public int hashCode()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.