摘要 |
A computer-implemented method for creating transparent object adapters for replaced classes in an multi-subsystem application is provided. The method includes determining whether an original class of the original subsystem is referenced by at least one other of the multiple subsystems in response to substituting a new subsystem for an original one. If the original class is referenced by at least one other of the multiple subsystems, a pair of corresponding classes for the original class is generated. One of the generated classes defines an object adapter class having the same name and package as the original class, the other class defining a new class. The method further includes configuring the object adapter class to export methods referenced by at least one of the other subsystems and to transform data and/or handle references to adapter objects passed as parameters or returned values. Additionally, the method includes configuring the object adapter class and the new class to maintain references to one another. |