Method stub

A stub ( from English- stub, stump, stub, stump ') or nozzle referred to in the software development program code, which is instead of another program code. Here is the program code that replaces the stub, either not yet developed ( top-down ) or he is on another machine or in another memory area. In the last two examples, the stub of the local starting point is to otherwise via complex protocols achievable software components easy to speak and to hide this complexity. A stub is then the design pattern representative ( proxy).

In particular, stubs are used in the development of distributed systems Application: The functionality of a remote, accessible only via a network software system is provided on the local system as a " stub component " is available. This stub component can be addressed by the software on the local system as if the functionality of the remote system locally available ( access transparency). But instead of this desired function to actually implement the stub component translates the requests into network calls ( marshalling), communicates with the remote system and delegates the action to this. For the system -use of this communication process remains hidden.

In a communication according to the client -server model (RPC, RMI) representative of the local stub to the client is also a proxy. For the counterpart on the server can be in various techniques can be created from an abstract description, a skeleton, a so-called skeleton.

752386
de