Интерфейс PortableRemoteObjectDelegate
public interface PortableRemoteObjectDelegate
Поддерживает делегирование для реализации методов в PortableRemoteObject. Делегат — это одиночный экземпляр класса, реализующего этот интерфейс, и предоставляющий замену для всех методов javax.rmi.PortableRemoteObject. Делегирование активируется путем указания имени класса делегата в качестве значения свойства javax.rmi.CORBA.PortableRemoteObjectClass.
- См. также:
PortableRemoteObject
Методы
| Модификатор и тип | Метод и описание |
|---|---|
void |
connect(Remote target,
Remote source) Вызов делегирования для |
void |
exportObject(Remote obj) Вызов делегирования для |
Object |
narrow(Object narrowFrom,
Class narrowTo) Вызов делегирования для |
Remote |
toStub(Remote obj) Вызов делегирования для |
void |
unexportObject(Remote obj) Вызов делегирования для |
Методы
exportObject
void exportObject(Remote obj)
throws RemoteException Вызов делегирования для PortableRemoteObject.exportObject(java.rmi.Remote).
- Исключения:
RemoteException
toStub
Remote toStub(Remote obj)
throws NoSuchObjectException Вызов делегирования для PortableRemoteObject.toStub(java.rmi.Remote).
- Исключения:
NoSuchObjectException
unexportObject
void unexportObject(Remote obj)
throws NoSuchObjectException Вызов делегирования для PortableRemoteObject.unexportObject(java.rmi.Remote).
- Исключения:
NoSuchObjectException
narrow
Object narrow(Object narrowFrom,
Class narrowTo)
throws ClassCastException Вызов делегирования для PortableRemoteObject.narrow(java.lang.Object, java.lang.Class).
- Исключения:
ClassCastException
connect
void connect(Remote target,
Remote source)
throws RemoteException Вызов делегирования для PortableRemoteObject.connect(java.rmi.Remote, java.rmi.Remote).
- Исключения:
RemoteException
© 1993, 2020, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.