One embodiment of the present invention provides a system that facilitates
deploying components on a client. During operation, the system
establishes a communication session through a network connection between
the client and a server. Next, the system migrates components from the
server to the client, wherein the components provide services and are
able to use services provided by other components. Finally, the client
installs the components on the client, thereby allowing the components to
provide services on the client. Note that by supporting deployment of
components on the client in this way, the system facilitates a unified
component architecture across the client and the server.