Consequences of applying the pattern
Model after use of the pattern

Figure 137. Transformed model
Summary of the transformations
The following modifications were made to the concrete class:
· the class was renamed with the name that was entered in the dialog box
· a generalization was added towards "UnicastRemoteObject"
· adding of an import towards java.rmi*
· the {JavaThrownException} tagged value was added on each public method to indicate that it may run the "RemoteException" exception
· an implementation link was added towards the interface
An interface was also created with:
· the name given in the dialog box
· all the public methods of the initial class
· a generalization towards "Remote"
· an import towards "java.rmi*"
The pattern can be re-applied later, either to the class, or to the interface. The correct names of the class and interface must be given in the dialog box if you have not kept the default names. The interface is then updated taking into account the modifications made to the class.