2-17
DSOM Framework Reference
change_implementation Method
Purpose
Changes the implementation associated with the referenced object. (Not implemented.)
IDL Syntax
void change_implementation (
in SOMDObject obj,
in ImplementationDef impl);
Description
The change_implementation method is defined by the CORBA specification, but has a null
implementation in DSOM. This method always returns a NO_IMPLEMENT exception.
In CORBA 1.1, the change_implementation method is provided to allow an application to
change the implementation definition of an object.
However, in DSOM, the ImplementationDef identifies the server which implements an
object. In these terms, changing an object’s implementation (that is, server) would result in a
change in the object’s location. In DSOM, moving objects from one server to another is
considered an application-specific task, and hence, no default implementation is provided.
It is possible, however, to change the program which implements an object’s server, or
change the class library which implements an object’s class. To modify the program
associated with an ImplementationDef, use the update_impldef method defined on
ImplRepository. To change the implementation of an object’s class, replace the
corresponding class library with a new (upward-compatible) one.
Parameters
receiver A pointer to a BOA (SOMOA) object for the server.
env A pointer to the Environment structure for the method caller.
obj A pointer to the SOMDObject object which refers to the application object
whose implementation is to be changed.
impl A pointer to the ImplementationDef object representing the new
implementation of the application object.
Return Value
The SOMOA implementation always returns a NO_IMPLEMENT exception, with a minor
code of SOMDERROR_NotImplemented.
Original Class
BOA
Kommentare zu diesen Handbüchern