# Patent

## Title
Automatic connections between application components

## Abstract

One or more aspects of the subject matter described in this disclosure include identifying a first application component received by a running application, identifying a first automatically connectable connection for the first application component, selecting a second automatically connectable connection for a second application component, the second application component residing in the running application, and automatically connecting the first connection with the second connection so that information can be exchanged between the first application component and the second application component by way of the first connection and the second connection while the first application is running.

## Background
BACKGROUND
Typically, application components such as graphical user interface (GUI) buttons, data grids, and non-visual components such as web services need to be “connected” together or bound by means of script or other programming language in an application. For example, a software programmer can write code such that when a user selects or presses a GUI button, this will cause information from a web service to be presented in a data grid. In order for this to happen, a button selection event needs to cause a request to be sent to the data service and, the subsequent information received from the data service needs to be placed into the data grid. Some development environments simplify the programming aspects of this process somewhat by restricting what types of objects (e.g., data sources) a particular component can be bound to. However, the process of connecting components to one another can still require user input explicitly specifying how components connect.
SUMMARY
In general, one or more aspects of the subject matter described in this specification can be embodied in one or more methods that include receiving information by a running application identifying an application component, the first application component having one or more first automatically connectable connections, the receiving comprising: 1) selecting a first connection for the first application component, the first connection being one of a sink and a source; 2) selecting a second automatically connectable connection for a second application component, the second application component residing in the first running application, the second connection being the other of the sink and the source; and 3) connecting the first connection with the second connection so that information can be exchanged between the first application component and the second application component by way of the first connection and the second connection while the first application is running. Other embodiments of this aspect include corresponding systems, apparatus, and computer program products.
These and other embodiments can optionally include one or more of the following features. The first application component can be obtained from another running application. The first application component can be obtained from a file system. The receiving can comprise integrating code for running the first application component into the first running application. The first application component can have a visual representation in a second running application or a file system. The first application component's visual representation can be presented in the first running application's visual representation and accepting input to determine where the first application component's visual representation is to appear in the first running application's visual representation. Receiving can be triggered by a drag-and-drop operation of the first application component to the second running application. The first automatic connection and the second automatic connection can match. The connection between the first application component and the second application component can be persisted. The information exchanged between the first application component and the second application component can be textual.
Particular embodiments of the subject matter described in this specification can be implemented to realize one or more of the following advantages. Application components can be interactively dragged from a running application or a file system, for example, and dropped onto a new or existing recipient application. When a component is dropped, code executes that attempts to automatically connect all input and output connections on the dropped component to available inputs and outputs on existing components in the recipient application while the recipient application is running. Automatic component connections in the recipient application can be persisted across invocations of the recipient application. Moreover, source code for the dropped component can be automatically integrated into the recipient application for development purposes. If the dropped component has a visual representation, the visual representation can be automatically integrated into the display hierarchy of the recipient application.
The details of one or more embodiments of the subject matter described in this specification are set forth in the accompanying drawings and the description below. Other features, aspects, and advantages of the invention will become apparent from the description, the drawings, and the claims.



BRIEF DESCRIPTION OF THE DRAWINGS
FIGS. 1A-D illustrate example application components in running software applications.
FIG. 2A is a schematic diagram of the components in an unconnected state.
FIG. 2B is a schematic diagram of the components in a connected state.
FIG. 3 illustrates source code for an example component using inline metadata tags.
FIG. 4A is a flow diagram of an example automatic connection technique.
FIG. 4B is a flow diagram of an example technique for integrating an application component into an application.
FIG. 5 is a schematic diagram of an example automatic component connection system.
FIG. 6 is a block diagram of example computing devices.



Like reference numbers and designations in the various drawings indicate like elements.
DETAILED DESCRIPTION
FIG. 1A illustrates example application components in running software applications. (For the sake of brevity, application components and running software applications will be referred to as components and applications, respectively.) Each application in FIG. 1A is represented as a GUI window (100, 102, 104) which is used to implement some or all of a user interface for the respective applications. The application represented by window 100 includes two example components which have visual representations in the window 100: a weather component 100a currently set to report weather for San Jose, Calif., and a clock component 100b which displays the current time. The weather component 100a and the clock component 100b obtain the current weather and time from a web service or information stored locally, for example. The application associated with window 102 includes a graph component 102a for graphing two dimensional data. The application associated with window 104 includes a location component 104a which is operable to obtain the geographic location of the host computer based on the computer's Internet Protocol (IP) address or information stored locally, for instance. In some implementations, a component does not have a visual representation.
The application includes code that implements the functionality of the components or, alternatively, an application does not include code that implements the functionality of components but is capable of providing visual placeholders for them. Generally speaking, a component is a unit of software functionality that is integrated, or can be integrated, into a software application, and represents a subset of an application's functionality. By way of illustration, a component could be realized as one or more functions, methods or procedures in a programming language. Other types of components are possible, as will be described below.
In various implementations, a component is able to be integrated into an application while the application is executing or running. A component can be interactively moved or copied to a so-called recipient application such that the component functionality is integrated into the recipient application while the recipient application is running. Alternatively, the component is integrated into the recipient application after the recipient application has completed execution. The component is identified by a so-called donor application. The component's functionality is integrated into the donor application or, alternatively, the component's functionality is not integrated into the donor application but the component is nonetheless identified by a visual representation or other representation in the donor application. An example of the later case is graphical file system browser which visually depicts files and directories in a computer file system. In this case, the file system GUI serves as a donor application and a component is represented by a file icon in a window showing a directory's contents. If the component does not have a visual representation (e.g., a web service), the donor application can provide a default representation (e.g., a rectangle or other shape) in order to allow a user to interactively manipulate the component.
FIGS. 1B-C illustrate how a component can be interactively dragged from a donor application and dropped into a recipient application to move the component, or a copy of the component, to the recipient application. This is a so-called drag-and-drop operation commonly found in many GUIs. Other techniques for interactively performing the same functionality are possible. In this illustration, graph component 102a is dragged from window 102 to window 100, thus causing the component 102a to be integrated into the application associated with window 100. A user or a process can select (e.g., with a mouse or other input device) the graph component 102a. Then, a visual representation of the component 102a is “dragged” 106 over window 100 and “dropped” at a target location (e.g., 108) at which point the graph component 102a will be integrated into the application associated with window 100, as shown in FIG. 1C.
The illustration of component integration described above will now be discussed in more detail. Initially, the component to be moved or copied is identified by a user or a process. For example, the donor application associated with window 102 detects that a mouse drag event has occurred on a window region associated with component 102a. In response to this event, the donor application associated with window 102, or another process, collects component information that might be needed by the recipient application (e.g., the application associated with window 100). The component information includes, or refers to, information describing the component's automatic connections as well as the location of the component's source code and/or executable code. Automatic connections are further described below. Other information can be included with the component information including, but not limited to, the location of component resources such as image files, icons, sound files, other content, digital rights management (DRM) information for the component, and information regarding the donor application. DRM information can specify the privileges or rights granted from the donor application to the recipient application for use of the component. These rights can include, for example, the right to execute the component (e.g., in a non-demonstration mode or a limited demonstration mode), rights governing use of the component's connections, the right to persist the component in the recipient application, and other rights.
The recipient application associated with window 100 then detects that a mouse drop event has occurred at a target location 108 on the window 100 (or a collapsed, shrunken or minimized version of window 100, or an alternative representation of the recipient application such as an icon or other visual object). In response, the recipient application or another process incorporates the code for the component into the recipient application. If the recipient application includes a virtual machine (VM), such as the Adobe Flash ActionScript virtual machine available from Adobe Systems Incorporated of San Jose, Calif., code designated to handle the mouse drop event in the VM can cause the source or executable code identified by the drop-target information to be loaded into the VM such that the component and its types (e.g., classes, interfaces) become part of the recipient application's runtime environment. If the recipient application does not include a VM, then the recipient application's mouse drop event handler can dynamically load the component's code by way of a dynamic link library (DLL) or similar mechanism, for example. Other techniques for integrating code into a running application are possible.
In various implementations, if the component has a visual representation, such as the graph component 102a, the recipient application integrates the component's visual representation into the recipient application's display hierarchy such that the component is visually apparent to the user (e.g., in window 100). In various implementations, if the recipient application supports a document object model (DOM), for instance, the component can be incorporated into the DOM hierarchy so that the component's visual representation will appear in the recipient application's window when the DOM is presented in the window. In some implementations, the component's visual representation is incorporated into the recipient application's display hierarchy such that the component appears at or near the target location (e.g., 108).
The recipient application or another process further integrates the dropped component by attempting to connect the component's automatic connections with connections of other components in the recipient application. As illustrated in FIG. 1C, the graph component 102a in window 100 has been automatically connected to the weather component 100a and the clock component 100b in the application associated with window 100 in order to graph temperature (from component 100a) vs. time (from component 100b). Automatic connections allow users to easily integrate components into applications without the need for having programming language skills. As a further illustration, the location component 104a is dragged 110 from window 104 to window 100 and integrated into the application associated with window 100. As shown in FIG. 1D, the location component 104a has been automatically connected to the weather component 100a such that the weather component 100a is now providing a forecast for San Francisco, Calif. rather than San Jose, Calif. The changed weather information (e.g., temperatures) will be provided to the graph component 102a so that the graph now reflects San Francisco temperatures over time.
FIG. 2A is a schematic diagram of the components of FIGS. 1A-D in an unconnected state. A component's properties can serve as sites for automatic connection with the properties of other components. Such properties, hereinafter referred to as “connections,” act as sources or sinks. A source connection is a connection that provides information to one or more sink connections of other components. A sink connection is a connection that receives information from one or more source connections of other components. A component can have one or more source connections, sink connections, or combinations of these. As an example, if a component is realized as a class in an object oriented programming language (e.g., ActionScript, Java or C++), methods of the class could be designated automatically or manually as source connections if they are configured to produce or return information, and as sink connections if they are configured to receive information in one or more parameters. (Component connections are described in more detail in reference to FIG. 3 below.)
By way of illustration, the weather component 100a has a source connection 202a for providing temperature information, the clock component 100b has a source connection 204c for providing time information, the graph component 102a has a sink connection 200a for receiving Y values and a second sink connection 200b for receiving X values. And the location component 104a has a source connection 206a for providing location information. In various implementations, connections exchange information as text strings (e.g., Unicode characters), binary data, <name, value> tuples, markup language (e.g., eXtensible Markup Language), or combinations of these. Other information formats are possible. In further implementations, the data binding features of the Adobe Flex cross platform application framework can be used to exchange information between connections.
FIG. 2B is schematic diagram of the components of FIGS. 1A-D automatically connected as shown in the application associated with window 100. The location component 104a provides location information through source connection 206a to the weather component 100a by way of sink connection 202b. The weather component 100a in turn displays the weather for the received location and provides temperature information for the location on the source connection 202a. The temperature information is received by the graph component 102a's Y axis sink connection 200a. The current time information provided by the clock component 100b over source connection 204c is received by the X axis sink connection 200b and used to plot temperature as a function of time in the graph component 102a. 
A component can comprise one or more of programming language source code, compiled or translated programming language source code, metadata, properties, and resources (e.g., images, sounds, or other content). By way of illustration, a component can be a method, a function, a procedure, a script, an event handler, a signal handler, or various combinations of these. Other component types are possible.
A component can participate in an automatic connection process (e.g., such as when a component is dropped into a recipient application) if one or more of its connections are designated as auto-connectable. In various implementations, metadata tags or other designators inline with a component's source code, or external from the source code, can indicate which connections are auto-connectable. For example, a metadata tag [AutoConnect] can be used to designate such connections. Example tag values are as follows:















[AutoConnect(source, option1, ... optionn)]



[AutoConnect(sink, option1, ... optionn)]



[AutoConnect(source, sink, option1, ... optionn)]










The “source” parameter indicates that a designated connection (e.g., method) can supply information to other components. The “sink” parameter indicates that the connection can accept information from other components. In some implementations, a connection can be both a source and a sink.
In further implementations, the order in which connections are made and other options can influence the automatic connection process. For example, the [AutoConnect] tag allows for one or more optional parameters indicated as option1, . . . optionn. An “order=n” optional parameter specifies the order “n” in which this automatically connectable connection should be considered. For example, consider the following ActionScript code:















[AutoConnect(source, order=1)]



public function get windSpeed ( ) : Number { return 3; }










Indicates that the connection called “windSpeed” should be considered before other connections for this component when connecting to other components.
Another optional parameter is “NamesMustMatch”—this restricts the type of connection between component properties to ones where the property names on the two candidates match exactly:















[AutoConnect(source, NamesMustMatch)]



public function get windSpeed ( ) : Number { return 3; }










That is, for example, if one component specifies on a property named “windSpeed” that “NamesMustMatch,” that property will only be bound to a property named “windSpeed” on another component.
Alternatively, two connection names match if they are synonyms. In a further alternative, the names match if they are within a specified edit distance of each other (e.g., the edit distance between two strings of characters is the number of operations required to transform one of them into the other). Other ways of matching are possible.
Another optional parameter is “TypesMustMatch”—this restricts the type of connection between component properties to ones where the property types on the two candidates match exactly or, alternatively, or are compatible (e.g., one type can be converted into the other):















[AutoConnect(source, TypesMustMatch)]



public function get Temperature ( ) : Number {return 78;}










That is, if one component specifies on a property named “Temperature” that “TypesMustMatch,” that property will only be bound to a sink connection on another component that accepts an numeric value (e.g., 78) rather than a string, for example.
A further optional parameter is “DRMMustMatch”—this restricts the type of connection between component properties to ones where the DRM rights on the two candidates match exactly or, alternatively, or are compatible.
Yet a further optional parameter is “AllowMultiple” which means that the source or sink connection so tagged is not removed from the pool of available connections once a connection has been made.
FIG. 3 illustrates ActionScript source code 300 for an example component using inline metadata tags. The location of the component's source code is given by the metadata tag 316 which specifies the location as a Universal Resource Locator (URL). The “PersistentProperties” tag 314 indicates which properties in a component should be serialized on a drag-and-drop or equivalent operation so the state of the component is preserved and restored in the recipient application (and also when the “current configuration” of a running app is saved). Individual components properties can be tagged with PersistentProperties to achieve the same result.
The component is defined as a class 302 named “TextArea” that implements an interface “IComposable” 304. The IComposable interface designates a class as a reusable component to the compiler or runtime environment, for example. The component includes two methods which have been designated as being auto-connectable by the metadata tag 306. These are the set text method 308, which acts as a sink connection, and the get text method 310, which acts as a source connection. The other methods 312 are not designated as auto-connectable and so are not be considered during an automatic connection process.
FIG. 4A is a flow diagram 400 of an example automatic connection technique. In various implementations, when a new component is integrated into a recipient application, several attempts to make connections with existing components in the recipient application are made. Initially, source connections on the new component and sink connections on existing components are identified. When a source connection's name on the new component matches a sink connection's name on an existing component, they are bound together (step 402). Likewise, when a sink connection's name on the new component matches a source connection's name on an existing component, they are bound together (step 404). Unbound source connections on the new component are identified and bound to unbound sink connections on existing components unless one of the connections is designated as NamesMustMatch (step 406). Unbound source connections on the new component are identified and bound to unbound sink connections on existing components unless one of the connections is designated as NamesMustMatch (step 408). This technique can be modified to match based on types or other criteria. Bound connections, once made, can be persisted when the recipient application state is saved such that they are reconstructed as they were previously when the recipient application is restarted.
FIG. 4B is a flow diagram 410 of an example technique for integrating an application component into an application. A first application component is identified (e.g., in a donor application), the first application component having one or more first automatic connections (step 412). A running recipient application is then identified where the recipient application has one or more one or more second application components, each second application component having one or more second automatic connections (step 414). The first application component is provided to the recipient application (step 416), where the providing includes: selecting a first automatic connection for the first application component, the first automatic connection being one of a sink and a source (step 418); selecting a second automatic connection for a second application component, the second automatic connection being the other of the sink and the source (step 420); and connecting the first automatic connection with the second automatic connection so that information can be exchanged between the first application component and the second application component by way of the first automatic connection and the second automatic connection while the second application is running (step 422).
FIG. 5 is a schematic diagram of an example automatic component connection system 500. In this example, a donor application 502 and a recipient application 504 are shown executing on the same computing device (600). However, this need not be the case. In general, the donor application 502 and the recipient application 504 can execute on different computing devices connected by a computer network, for example. The donor application 502 or another process provides component information to the recipient application 504 which is received by the component integrator module 510. In some implementations, the recipient application 504 is a web browser. In some implementations, the recipient application 504 is an Adobe AIR application. Adobe AIR is a cross-operating system runtime that allows web developers to leverage their existing skills (such as HTML and JavaScript) to build and deploy web applications on the desktop. Adobe AIR is available from Adobe Systems Incorporated of San Jose, Calif. Other recipient applications are possible, including applications that do not include a VM.
The integrator module 510 invokes the class loader 514 to load the component's code from the location designated in the component information and populates a symbols database 534 with the symbols and associated types found in the code. The class loader 514 also recognizes metadata tags in the code and creates entries in the symbols database 534 for each connection including the connection type (e.g., sink, source), and any options placed on the connection. Code associated with the symbols is stored in the method area 524 of the runtime data area 538. The runtime data area 538 also includes stacks 520 for use by the VM and native method stacks 522 for use when invoking native methods. A heap 526 is available to methods for creating global objects. The integrator module 510 can also integrate DRM information, if any, for the component or its connections (from the component information) into the symbols database 534.
Once the code and DRM information have been processed, the auto connector module 512 attempts to bind automatic connections on the component with components in the recipient application 504. For example, see FIG. 4A and the accompanying discussion. The integrator 510 then installs component's visual representation, if any, in the DOM 532 such that the visual representation will be presented in a rendering of the DOM. In some implementations, the location of the visual representation is based on the target location (e.g., 108), if this information is included in the component information. In other implementations, the component integrator 510 can arrange the component visual representations based on their connectivity such that connected components appear closer to each other, for example. Other visual arrangements are possible.
The execution engine 540 executes code (e.g., ActionScript) from the method area 524 to create running processes 528 that can make use of the VM's resources such as the VM stacks (510) and heap (526). The executing processes 528 can utilize one or more components. Components are able to exchange information between their bound connections in a number of ways. In some implementations, the components use a synchronous messaging model implemented by the component data exchange support module 516. In this model, sink connections are registered with an event dispatcher implemented by the data exchange support module 516. When a source connection has new information to provide, the event dispatcher invokes each sink connection registered with the source connection to receive the information.
Another component interaction model is an asynchronous event model. In this model, the component data exchange support module 516 implements an event queue which source connections can post to when new data is available and sink connections can read from, asynchronously, when they are ready to receive new data. In some implementations, there is one event queue for each bound source connection. This allows for event compression since a sink connection might only desire the latest value from a source, rather than all values that have been posted since the last time the sink connection read from the queue.
A further component interaction model is a shared memory model which uses the heap 526 to store a global source connections table. Similar to the asynchronous event model, source connections can set a flag in the shared memory table when source data is ready. The component data exchange support module 516 periodically scans the table to see if new data is available on any of the connections. If so, the module 516 notifies sink connections that are bound to the source connection so that they may obtain the data.
Yet a further component interaction model is based on a data flow model. A directed graph is constructed by the component data exchange support module 516 which reflects the dependencies between sink connections and source connections. Downstream sink connections attempt to read upstream source connections and will block until the upstream source connections generate new data. Other implementations are also possible.
FIG. 6 is a block diagram of computing devices 600, 650 that may be used to implement the systems and techniques described in this document, as either a client or as a server or plurality of servers. Computing device 600 is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Computing device 650 is intended to represent various forms of mobile devices, such as personal digital assistants, cellular telephones, smart phones, and other similar computing devices. The components shown here, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed in this document.
Computing device 600 includes a processor 602, memory 604, a storage device 606, a high-speed interface 608 connecting to memory 604 and high-speed expansion ports 610, and a low speed interface 612 connecting to low speed bus 614 and storage device 606. Each of the components 602, 604, 606, 608, 610, and 612, are interconnected using various busses, and may be mounted on a common motherboard or in other manners as appropriate. The processor 602 can process instructions for execution within the computing device 600, including instructions stored in the memory 604 or on the storage device 606 to display graphical information for a GUI on an external input/output device, such as display 616 coupled to high speed interface 608. In other implementations, multiple processors and/or multiple buses may be used, as appropriate, along with multiple memories and types of memory. Also, multiple computing devices 600 may be connected, with each device providing portions of the necessary operations (e.g., as a server bank, a group of blade servers, or a multi-processor system).
The memory 604 stores information within the computing device 600. In one implementation, the memory 604 is a computer-readable medium. In one implementation, the memory 604 is a volatile memory unit or units. In another implementation, the memory 604 is a non-volatile memory unit or units.
The storage device 606 is capable of providing mass storage for the computing device 600. In one implementation, the storage device 606 is a computer-readable medium. In various different implementations, the storage device 606 may be a floppy disk device, a hard disk device, an optical disk device, or a tape device, a flash memory or other similar solid state memory device, or an array of devices, including devices in a storage area network or other configurations. In one implementation, a computer program product is tangibly embodied in an information carrier. The computer program product contains instructions that, when executed, perform one or more methods, such as those described above. The information carrier is a computer- or machine-readable medium, such as the memory 604, the storage device 606, or memory on processor 602.
The high speed controller 608 manages bandwidth-intensive operations for the computing device 600, while the low speed controller 812 manages lower bandwidth-intensive operations. Such allocation of duties is exemplary only. In one implementation, the high-speed controller 608 is coupled to memory 604, display 616 (e.g., through a graphics processor or accelerator), and to high-speed expansion ports 610, which may accept various expansion cards (not shown). In the implementation, low-speed controller 612 is coupled to storage device 606 and low-speed expansion port 614. The low-speed expansion port, which may include various communication ports (e.g., USB, Bluetooth, Ethernet, wireless Ethernet) may be coupled to one or more input/output devices, such as a keyboard, a pointing device, a scanner, or a networking device such as a switch or router, e.g., through a network adapter.
The computing device 600 may be implemented in a number of different forms, as shown in the figure. For example, it may be implemented as a standard server 620, or multiple times in a group of such servers. It may also be implemented as part of a rack server system 624. In addition, it may be implemented in a personal computer such as a laptop computer 622. Alternatively, components from computing device 600 may be combined with other components in a mobile device (not shown), such as device 650. Each of such devices may contain one or more of computing device 600, 650, and an entire system may be made up of multiple computing devices 600, 650 communicating with each other.
Computing device 650 includes a processor 652, memory 664, an input/output device such as a display 654, a communication interface 666, and a transceiver 668, among other components. The device 650 may also be provided with a storage device, such as a microdrive or other device, to provide additional storage. Each of the components 650, 652, 664, 654, 666, and 668, are interconnected using various buses, and several of the components may be mounted on a common motherboard or in other manners as appropriate.
The processor 652 can process instructions for execution within the computing device 650, including instructions stored in the memory 664. The processor may also include separate analog and digital processors. The processor may provide, for example, for coordination of the other components of the device 650, such as control of user interfaces, applications run by device 650, and wireless communication by device 650.
Processor 652 may communicate with a user through control interface 658 and display interface 656 coupled to a display 654. The display 654 may be, for example, a TFT LCD display or an OLED display, or other appropriate display technology. The display interface 656 may comprise appropriate circuitry for driving the display 654 to present graphical and other information to a user. The control interface 658 may receive commands from a user and convert them for submission to the processor 652. In addition, an external interface 662 may be provide in communication with processor 652, so as to enable near area communication of device 650 with other devices. External interface 662 may provide, for example, for wired communication (e.g., via a docking procedure) or for wireless communication (e.g., via Bluetooth or other such technologies).
The memory 664 stores information within the computing device 650. In one implementation, the memory 664 is a computer-readable medium. In one implementation, the memory 664 is a volatile memory unit or units. In another implementation, the memory 664 is a non-volatile memory unit or units. Expansion memory 674 may also be provided and connected to device 650 through expansion interface 672, which may include, for example, a SIMM card interface. Such expansion memory 674 may provide extra storage space for device 650, or may also store applications or other information for device 650. Specifically, expansion memory 674 may include instructions to carry out or supplement the processes described above, and may include secure information also. Thus, for example, expansion memory 674 may be provide as a security module for device 650, and may be programmed with instructions that permit secure use of device 650. In addition, secure applications may be provided via the SIMM cards, along with additional information, such as placing identifying information on the SIMM card in a non-hackable manner.
The memory may include for example, flash memory and/or MRAM memory, as discussed below. In one implementation, a computer program product is tangibly embodied in an information carrier. The computer program product contains instructions that, when executed, perform one or more methods, such as those described above. The information carrier is a computer- or machine-readable medium, such as the memory 664, expansion memory 674, or memory on processor 652.
Device 650 may communicate wirelessly through communication interface 666, which may include digital signal processing circuitry where necessary. Communication interface 666 may provide for communications under various modes or protocols, such as GSM voice calls, SMS, EMS, or MMS messaging, CDMA, TDMA, PDC, WCDMA, CDMA2000, or GPRS, among others. Such communication may occur, for example, through radio-frequency transceiver 668. In addition, short-range communication may occur, such as using a Bluetooth, WiFi, or other such transceiver (not shown). In addition, GPS receiver module 670 may provide additional wireless data to device 650, which may be used as appropriate by applications running on device 650.
Device 650 may also communication audibly using audio codec 660, which may receive spoken information from a user and convert it to usable digital information. Audio codex 660 may likewise generate audible sound for a user, such as through a speaker, e.g., in a handset of device 650. Such sound may include sound from voice telephone calls, may include recorded sound (e.g., voice messages, music files, etc.) and may also include sound generated by applications operating on device 650.
The computing device 650 may be implemented in a number of different forms, as shown in the figure. For example, it may be implemented as a cellular telephone 680. It may also be implemented as part of a smartphone 682, personal digital assistant, or other similar mobile device.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, specially designed ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various implementations can include implementation in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.
These computer programs (also known as programs, software, software applications or code) include machine instructions for a programmable processor, and can be implemented in a high-level procedural and/or object-oriented programming language, and/or in assembly/machine language. As used herein, the terms “machine-readable medium” “computer-readable medium” refers to any computer program product, apparatus and/or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term “machine-readable signal” refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a client computer having a graphical user interface or a Web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (“LAN”), a wide area network (“WAN”), and the Internet.
The computing system can include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
A number of embodiments of the invention have been described. Nevertheless, it will be understood that various modifications may be made without departing from the spirit and scope of the invention. For example, various forms of the flows shown above may be used, with steps re-ordered, added, or removed. Also, although several applications of the payment systems and methods have been described, it should be recognized that numerous other applications are contemplated. Accordingly, other embodiments are within the scope of the following claims.

## Claims

1. A computer-implemented method, comprising:
receiving information by a running application identifying a first application component, the first application component having a set of code including a first set of one or more class members that can be connected to a second set of one or more class members of a second application component;
identifying a first class member of the first application component based, at least in part, on a first metadata tag related to the first class member, the first class member being one of a sink and a source, wherein the first metadata tag includes a connection-order designation, which indicates an order in which the first class member should be ranked as compared to other class members of the first application component when determining whether first-class-member code of the first class member should be integrated with another class member;
automatically selecting a second class member for the second application component, the second application component residing in the running application, the second class member being the other of the sink and the source; and
connecting the first class member with the second class member by integrating code, which is executable to carry out the first class member, into a runtime environment of the running application, so that information can be exchanged between the first application component and the second application component.

2. The method of claim 1 where the running application is a first running application and the first application component is obtained from a second running application.

3. The method of claim 2 where the first application component has a visual representation in the second running application.

4. The method of claim 3 comprising:
presenting the first application component's visual representation in the first running application.

5. The method of claim 2 where the first application component is obtained by the first running application from the second running application by a drag-and-drop operation of the first application component from the second running application to the first running application.

6. The method of claim 1 where the first application component is obtained from a file system.

7. The method of claim 1, wherein automatically connecting the first connection with the second connection creates a connection between the first application component and the second application component, and further comprising: persisting the connection between the first application component and the second application component.

8. The method of claim 1 where the information exchanged between the first application component and the second application component is textual.

9. The method of claim 1, wherein the first metadata tag includes a first parameter associated with the first connection and the second connection is related to a second metadata tag including a second parameter, and wherein the first parameter matches the second parameter in at least one of the following: the first parameter is synonymous with the second parameter or the first parameter is compatible with the second parameter.

10. The method of claim 1, wherein the first metadata tag include at least one of a first source parameter and a first sink parameter corresponding to the first connection being the one of the sink and the source and wherein a second metadata tag includes at least one of a second source parameter and a second sink parameter corresponding to the second connection being the one of the sink and the source.

11. A computer program product, encoded on a non-transitory computer-readable medium, operable to cause one or more processors to perform operations comprising:
receiving information by a running application identifying a first application component, the first application component having a set of code including a first set of one or more class members that can be automatically bound to a second set of one or more class members of a second application component;
automatically identifying a first class member for the first application component based, at least in part, on a first metadata tag related to the first class member, the first class member being one of a sink and a source, wherein the first metadata tag includes a binding-order designation, which indicates an order in which the first class member should be ranked as compared to other class members of the first application component when determining whether the first class member should be programmatically bound to another class member;
automatically selecting a second class member for the second application component, the second application component residing in the running application, the second class member being the other of the sink and the source; and
automatically programming a persistent bound connection between the first class member and the second class member so that information can be exchanged between the first application component and the second application component by using an application framework.

12. The program product of claim 11 where the running application is a first running application and the first application component is obtained from a second running application.

13. The program product of claim 12 where the first application component has a visual representation in the second running application.

14. The program product of claim 13 where the operations comprise: presenting the first application component's visual representation in the first running application.

15. The program product of claim 12 where the first application component is obtained by the first running application from the second running application by a drag-and-drop operation of the first application component from the second running application to the first running application.

16. The program product of claim 11 where the first application component is obtained from a file system.

17. The program product of claim 11, where the operations comprise: integrating code for running the first application component into the running application.

18. The program product of claim 11 where the information exchanged between the first application component and the second application component is textual.

19. The computer program product of claim 11, wherein the first metadata tag includes a first parameter associated with the first connection and the second connection is related to a second metadata tag including a second parameter, the first parameter matches the second parameter in at least one of the following: the first parameter is synonymous with the second parameter or the first parameter is compatible with the second parameter.

20. The computer program product of claim 11, wherein the first metadata tag include at least one of a first source parameter and a first sink parameter corresponding to the first connection being the one of the sink and the source and wherein a second metadata tag includes at least one of a second source parameter and a second sink parameter corresponding to the second connection being the one of the sink and the source.

21. A system comprising:
a machine-readable storage device including a program product; and
one or more processors operable to execute the program product, interact with a display device, and perform operations comprising:
receiving information by a running application identifying a first application component, the first application component having a set of code including a first set of one or more class members that can be programmatically bound to a second set of one or more class members of a second application component;
automatically identifying a first class member for the first application component based, at least in part, on a first metadata tag related to the first class member, the first class member being one of a sink and a source, wherein the first metadata tag includes a binding-order designation, which indicates an order in which the first class member should be ranked as compared to other class members of the first application component when determining whether the first class member should be programmatically bound to another class member;
automatically selecting a second class member for the second application component, the second application component residing in the running application, the second class member being the other of the sink and the source; and
automatically programming a persistent bound connection between the first class member and the second class member so that information can be exchanged between the first application component and the second application component.

22. The system of claim 21 where the running application is a first running application and the first application component is obtained from a second running application.

23. The system of claim 22 where the first application component has a visual representation in the second running application.

24. The system of claim 23 comprising:
presenting the first application component's visual representation in the first running application.

25. The system of claim 22 where the first application component is obtained by the first running application from the second running application by a drag-and-drop operation of the first application component from the second running application to the first running application.

26. The system of claim 21 where the first application component is obtained from a file system.

27. The system of claim 21 where programming the persistent bound connection includes integrating code for running the first application component into the running application.

28. The system of claim 21 where the information exchanged between the first application component and the second application component is textual.

29. The system of claim 21, wherein the first metadata tag includes a first parameter associated with the first connection and the second connection is related to a second metadata tag including a second parameter, and wherein the first parameter matches the second parameter in at least one of the following: the first parameter is synonymous with the second parameter or the first parameter is compatible with the second parameter.

30. The system of claim 21, wherein the first metadata tag include at least one of a first source parameter and a first sink parameter corresponding to the first connection being the one of the sink and the source and wherein a second metadata tag includes at least one of a second source parameter and a second sink parameter corresponding to the second connection being the one of the sink and the source.