public interface ActivationInstantiator extends Remote
ActivationInstantiator负责创建“可激活”对象的实例。
的具体子类ActivationGroup实现newInstance方法来处理创建组中的对象。
ActivationGroup
| Modifier and Type | Method and Description |
|---|---|
MarshalledObject<? extends Remote> |
newInstance(ActivationID id, ActivationDesc desc)
激活器调用实例化器的
newInstance方法,以便在该组中重新创建具有激活标识符
id和描述
desc 。
|
MarshalledObject<? extends Remote> newInstance(ActivationID id, ActivationDesc desc) throws ActivationException, RemoteException
newInstance方法,以便在该组中重新创建具有激活标识符id和描述desc 。
实例负责人:
getClassName方法确定对象的类, getLocation方法), ActivationID和MarshalledObject包含对象特定的初始化数据,并 id - 对象的激活标识符
desc - 对象的描述符
ActivationException - 如果对象激活失败
RemoteException - 如果远程调用失败
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.