Different application components, whether part of a same computer application or different computer applications, often need to send custom events and data between each other. In one current approach to enable this functionality, each application component implements a message handler and registers with a global message queue. One application component sends a message with data attached to the global message queue and another application component's message handler fetches the message with the data attached.
This current approach fails to operate when the application components do not have access to each other or the global messaging queue. This may occur due to the receiving application component not being in existence when the message is sent. It may also occur due to application components being located in different layers and thus not able to communicate with each other or the global messaging queue.
This document describes tools capable of communicating events or event data between application components. These tools allow an application component to communicate an event or event data to another application component even if the two application components are in separate layers or do not exist at the same time.
This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter. The term “tools,” for instance, may refer to system(s), method(s), computer-readable instructions, and/or technique(s) as permitted by the context above and throughout the document.
The detailed description is described with reference to the accompanying figures. In the figures, the left-most digit of a reference number identifies the figure in which the reference number first appears. The use of the same reference number in different instances in the description and the figures may indicate similar or identical items.
Overview
This document describes tools that allow different application components to communicate events to each other and share data with each other. The tools may provide this functionality even if the application components do not have access to each other, such as if they exist in separate layers. The tools may also provide this functionality even if one or more of the application components does not exist at the time an existing application component triggers an event. The application components may not even be aware that any other application components exist.
In one embodiment, the tools provide a way for an application component to communicate an event to an event-dispatching module. This event may be predefined, and thus defined prior to being triggered. It may also or instead be application-specific, and thus defined by the application in which the component resides rather than by an operating system, for example. The event includes event data associated with the event. The event-dispatching module communicates a notification to another application component that the event has occurred. This notification does not include the event data. The event dispatching module communicates the event data to an event-data store. The event-data store maintains the event data for access by the other application component. The event-data store also may maintain the event data for access by a still different application component, which did not receive a notification of the event. These application components may be part of the same application or different applications.
Example Environment
The tools allow event-dispatching module 108 to receive events from application component(s) 112, which may include event data associated with the event. This receiving capability is illustrated by line 118. The tools allow event-dispatching module 108 to communicate a notification of one of the events to application component(s) 114. This communicating capability is illustrated by line 120. In this embodiment, the notification does not include the event data but in other embodiments it may include the event data. The tools also allow event-dispatching module 108 to communicate the event data to event-data store 110. This communicating capability is illustrated by line 122. The tools provide event data-store 110 with the capability to maintain the event data for access by application component(s) 114 and 116.
Application component(s) 112, 114, and 116 exist within one or more layers 124, 126, and 128, respectively, which isolate them from other components, including from other application components 112, 114, or 116. A layer may also isolate application components 112, 114, and 116 effective to prevent them from accessing the computer-readable media 106 or system resources on computing device 102 or communicating events and/or data between application components. In some cases layers approximate windows that are views of one or more applications in various combinations. The layers are comprised of software, hardware, or a combination of both designed to isolate all or part of an application or application component.
Event-dispatching module 108 and event-data store 110 are designed to communicate with the application component(s) 112, 114, and 116 through layers 124, 126, and 128, respectively. In one embodiment event-dispatching module 108 and event-data store 110 are part of a module (not shown) that creates the layers. In another embodiment, the module, which may create the layers, allows communication with event-dispatching module 108 and event-data store 110 even though they are external to the module.
Consider example layers created through a web-browser application running two or more web applications in separate windows or tabs. In this example each web application exists in a separate layer imposed by the web-browser. The web-browser either contains or allows access to event-dispatching module 108 and event-data store 110. The web applications containing application components 112, 114, and/or 116 are then able to communicate events and/or event data between each other.
The tools provide event-triggering application components 112 with a capability to trigger an event. This triggering involves communicating the event to event-dispatching module 108 and including associated event-data. The triggering capabilities are illustrated by line 118. The tools provide event-consuming application components 114 with the capability to receive a notification of the event from the event-dispatching module 108. This capability is illustrated by line 120.
The tools allow application components 114 to act in response to the notification. In one embodiment, an application component 114 retrieves event data from the event-data store 110 in response to the notification. This optional retrieval capability is illustrated by line 130. In another embodiment, application component 114 exits in response to the notification. In another embodiment, application component 114 logs the occurrence of the event in response to the notification.
The tools allow data-consuming application components 116 to receive event data from the event-data store 110. This receiving capability is illustrated by line 132. Application component(s) 116 receive the event data passively; they do not receive a notification of the event to which the data is associated. Application components 116 may bind to a data source that is associated with the event as part of this receiving. In one embodiment application component 116 receives the data by fetching the data from event-data store 110.
While only one computing device 102 is depicted in
Note that one or more of the entities shown in
Generally, any of the functions described herein can be implemented using software, firmware, hardware (e.g., fixed-logic circuitry), manual processing, or a combination of these implementations. The terms “tool” and “module,” as used herein generally represent software, firmware, hardware, whole devices or networks, or a combination thereof. In the case of a software implementation, for instance, the tools or a module may represent program code that performs specified tasks when executed on a processor (e.g., CPU or CPUs). The program code can be stored in one or more computer-readable memory devices, such as computer-readable media 106. The features and techniques of the tools are platform-independent, meaning that they may be implemented on a variety of commercial computing platforms having a variety of processors.
Example Process for Communicating Between Application Components
The following discussion describes ways in which the tools may operate to enable application components to communicate events and/or event data between each other even if those application components are separated by one or more layers. Aspects of this process may be implemented in hardware, firmware, software, or a combination thereof. This process is shown as sets of blocks that specify operations performed by the tools, such as through one or more modules or devices, and are not necessarily limited to the order shown for performing the operations by the respective blocks. In portions of the following discussion reference may be made to environment 100 of
Block 202 receives a registration for an event from an application component. This registration informs the entity performing the process that another application component (e.g., event-consuming application component 114) would like to receive a notification if the event is triggered (e.g., by event-triggering application component 112).
By way of example, consider
Continuing the example, event-notification module 300 receives a registration from application component 114. This registration informed event-notification module 300 that application component 114 would like to receive notification of a particular event when that event is triggered. Event-notification module 300 stores the registration in event-registration data 302. For example, assume application component 114 is part of a web application and that it may register for the custom event by specifying: “<Event type=”#MyCustomEvent” action=”doSomething”/>.” In this embodiment, upon application component 114 being loaded, event-notification module 300 detects this registration and stores it in event-registration data 302. In other embodiments, application component 114 actively calls to event-notification module 300 in order to register for the event.
Block 204 receives the event from another application component. The event data, if any, is included along with the event. Continuing the ongoing example, event-notification module 300 receives the event, including event data 308, from event-triggering module 306. Continuing the above web-application example, application component 112 can be part of a web application and this communication occurs by calling to a Uniform Resource Identifier (e.g., a Uniform Resource Locator (URL) or Uniform Resource Name (URN)) representing event-notification module 300.
In this case event data may be attached to the event in the query portion of a URL as follows:
http://mydevice:port/MyCustomEvent?name1=value1&name2=value2
Alternatively event data may be attached by declaring it within a separate data container of the web application, such as with the following:
<Action type=“#MyCustomEvent” data=“name1=value1&name2=value2”/>
Block 206 communicates a notification of the event to another application component. Continuing the ongoing example, event-notification module 300 performs block 206 by searching event-registration data 302 for application components that are registered to receive the same type of event (e.g., #MyCustomEvent). Finding the event-triggering application component's registration (e.g., from application component 114), event-notification module 300 communicates a notification of the event to event-reaction module 310, such as by calling a method exposed by event-reaction module 310 or placing a notification in a location that event-reaction module 310 routinely checks.
Upon, receiving this notification, event-reaction module 310 performs a predefined action, in the ongoing example “DoSomething.” This action may include retrieving the event data associated with the “#MyCustomEvent” from event-data storage 304 or other functionality. For example, rather than retrieve event data, this action may log the occurrence of the event or do nothing at all.
Block 208 communicates data associated with the event to an event-data store. Continuing the ongoing example, event-notification module 300 performs block 208 by communicating the event data to event-data store 110. Event-data store 110 maintains the event data for access by application components 114 and 116. Event-data store 110 stores the event data in event-data storage 304. In this example, application components 114 access the data in response to receiving an event notification while application components 116 access the data without having received an event notification. Application components may forgo accessing the data in response to an event. In such cases application components 116 may include a data-receiving module 312 or other manner for loading the event data associated with the event. This loading of the event data may occur on initialization of application component 116, as the result of a data binding notification of updated data, as the result of a web application refresh, as the result of an update button being pushed, or by some other manner.
In one embodiment, application component 116 is part of a web application and uses data binding to access the event data by providing the following within the web application:
<Text text=“{Binding Source=MyDataSource, Path=name1}”/>
<DataSource id=“MyDataSource” url=“event:MyCustomEvent”/>
In this example, a text object in the application uses data-receiving module 312 to bind to a data source named “MyDataSource.” This data source points to the event data associated with the “MyCustomEvent” event. The text object is bound to the “name1” data property as provided by application component 112 and stored in event-data storage 304.
In some cases event-data store 110 expires the data source or the data itself. This expiration may be set for a specific date and time, such as 30 minutes from the time the event data was created or 5 minutes after the time the event data was first accessed by application component 114 or 116. This expiration may also be set for a particular condition, such as when the application component 112 that posted the event exits or when the computing device on which the event-data store is located restarts. At expiration, the data source and/or data is deleted.
Example Device
In the section above an example process is discussed for communicating events or event data between application components. To further illustrate this process, consider an example device in which this process may apply or operate. Set-top box 400 of
In this example embodiment, a user configures a set-top box. Application 402 provides user interface 406 through which a user specifies information, make selections, and the like. The user pushes a remote control's arrow buttons to navigate between fields. The user pushes the remote control's enter button to select a field to change. In response to selection of field 410, Application 402 triggers a “#NameFieldEntry” event with field 410's text (in this example, empty or null) included as event data in a field named “currentName”. Event dispatching module 108 takes the event data and communicates it to event-data store 110, which stores it so that it can be accessed by application 404.
At this point Application 402 exits (ceases to exist) and an instance of application 404 initializes. Application 404 provides user interface 408 through which a user specifies their name. Application 404 did not exist prior to this point. Application 404 data binds to a “currentName” value of the “#NameFieldEntry” event. Through this data binding, application 404 populates field 412 with the current value of field 410 from now non-existent application 402 (in this case empty or null). The user pushes the remote control's number buttons to type their name into application 404. Upon hitting the enter button on the remote, application 404 triggers a “#NameEntered” event and includes the text from field 412 as event data. Application 404 communicates this event and event data to event-dispatching module 108, which then communicates the event data to event-data store 110. Event-data store 110 maintains the event data for applications that wish to receive it. Application 404 then exits and a new instance of application 402 initializes. This new application 402 data binds to a “name” value of the “#NameEntered” event. Through this data binding application 402 receives the event data from event-data store 110. Accordingly, application 402 populates field 410 with the name value previously entered into field 412 by the user. With the tools this is possible even though application 404 no longer exists.
Conclusion
This document describes tools capable of communicating events or event data between application components. These tools allow an application component to communicate an event and event data to another application component even if the two application components are in separate layers or do not exist at the same time. Although the invention has been described in language specific to structural features and/or methodological acts, it is to be understood that the invention defined in the appended claims is not necessarily limited to the specific features or acts described. Rather, the specific features and acts are disclosed as example forms of implementing the claimed invention.
Number | Name | Date | Kind |
---|---|---|---|
5787470 | DeSimone et al. | Jul 1998 | A |
5978842 | Noble et al. | Nov 1999 | A |
5999978 | Angal et al. | Dec 1999 | A |
6112231 | DeSimone et al. | Aug 2000 | A |
6138141 | DeSimone et al. | Oct 2000 | A |
6226692 | Miloushev et al. | May 2001 | B1 |
6262729 | Marcos et al. | Jul 2001 | B1 |
6438618 | Lortz et al. | Aug 2002 | B1 |
6446136 | Pohlmann et al. | Sep 2002 | B1 |
6505241 | Pitts | Jan 2003 | B2 |
6574630 | Augustine et al. | Jun 2003 | B1 |
6651217 | Kennedy et al. | Nov 2003 | B1 |
6704804 | Wilson et al. | Mar 2004 | B1 |
6751665 | Philbrick et al. | Jun 2004 | B2 |
6832355 | Duperrouzel et al. | Dec 2004 | B1 |
7216292 | Snapper et al. | May 2007 | B1 |
7398473 | Stoner | Jul 2008 | B2 |
7424717 | Blevins | Sep 2008 | B2 |
7437376 | Sikchi et al. | Oct 2008 | B2 |
7441253 | Atkinson | Oct 2008 | B2 |
7460443 | Elmers | Dec 2008 | B2 |
7475384 | Heath | Jan 2009 | B2 |
7483870 | Mathew | Jan 2009 | B1 |
7765523 | Kooy | Jul 2010 | B2 |
7899370 | Nakajima | Mar 2011 | B2 |
8131676 | Pettit | Mar 2012 | B2 |
8132181 | Lenharth et al. | Mar 2012 | B2 |
8176160 | Appleton et al. | May 2012 | B2 |
8239880 | Caccavale et al. | Aug 2012 | B1 |
8392840 | Sharma | Mar 2013 | B2 |
8621376 | Kim et al. | Dec 2013 | B2 |
20020118300 | Middleton | Aug 2002 | A1 |
20020156556 | Ruffner | Oct 2002 | A1 |
20020156840 | Ulrich et al. | Oct 2002 | A1 |
20020196279 | Bloomfield et al. | Dec 2002 | A1 |
20030188017 | Nomura | Oct 2003 | A1 |
20040057348 | Shteyn | Mar 2004 | A1 |
20040107266 | Tanaka et al. | Jun 2004 | A1 |
20040218894 | Harville et al. | Nov 2004 | A1 |
20050038791 | Ven | Feb 2005 | A1 |
20050055458 | Mohan et al. | Mar 2005 | A1 |
20050114757 | Sahota et al. | May 2005 | A1 |
20050172000 | Nakamura et al. | Aug 2005 | A1 |
20050172309 | Risan et al. | Aug 2005 | A1 |
20050188350 | Bent et al. | Aug 2005 | A1 |
20050204148 | Mayo et al. | Sep 2005 | A1 |
20050273779 | Cheng et al. | Dec 2005 | A1 |
20050278737 | Ma | Dec 2005 | A1 |
20060021057 | Risan et al. | Jan 2006 | A1 |
20060047662 | Barik et al. | Mar 2006 | A1 |
20060070083 | Brunswig et al. | Mar 2006 | A1 |
20060074981 | Mauceri | Apr 2006 | A1 |
20060143236 | Wu | Jun 2006 | A1 |
20060179080 | Meek et al. | Aug 2006 | A1 |
20060196950 | Kiliccote | Sep 2006 | A1 |
20060224690 | Falkenburg et al. | Oct 2006 | A1 |
20060248451 | Szyperski et al. | Nov 2006 | A1 |
20060270462 | Chi | Nov 2006 | A1 |
20070033652 | Sherwani et al. | Feb 2007 | A1 |
20070050320 | Carrier | Mar 2007 | A1 |
20070124460 | McMullen et al. | May 2007 | A1 |
20070139441 | Lucas et al. | Jun 2007 | A1 |
20070226353 | Ruul | Sep 2007 | A1 |
20070255811 | Pettit et al. | Nov 2007 | A1 |
20080033806 | Howe | Feb 2008 | A1 |
20080064351 | Landschaft | Mar 2008 | A1 |
20080114810 | Malek | May 2008 | A1 |
20080134250 | Liu | Jun 2008 | A1 |
20080140714 | Rhoads et al. | Jun 2008 | A1 |
20080205205 | Chiang | Aug 2008 | A1 |
20080215345 | Hollingsworth et al. | Sep 2008 | A1 |
20080282083 | Risan et al. | Nov 2008 | A1 |
20080301803 | Ontaneda | Dec 2008 | A1 |
20080313650 | Arnquist | Dec 2008 | A1 |
20080319856 | Zito | Dec 2008 | A1 |
20090077211 | Appleton et al. | Mar 2009 | A1 |
20090138502 | Kalaboukis et al. | May 2009 | A1 |
20090198744 | Nakamura | Aug 2009 | A1 |
20090204719 | Simongini et al. | Aug 2009 | A1 |
20090217146 | Goldfarb | Aug 2009 | A1 |
20090307212 | Ramot et al. | Dec 2009 | A1 |
20100095337 | Dua | Apr 2010 | A1 |
20100165877 | Shukla et al. | Jul 2010 | A1 |
20100241527 | McKenna et al. | Sep 2010 | A1 |
20100241669 | Pettit | Sep 2010 | A1 |
20100257216 | Pettit | Oct 2010 | A1 |
20100299620 | Sharma | Nov 2010 | A1 |
20110099500 | Smith et al. | Apr 2011 | A1 |
Number | Date | Country |
---|---|---|
WO2004027606 | Apr 2004 | WO |
WO-2005093603 | Oct 2005 | WO |
Entry |
---|
“Final Office Action”, U.S. Appl. No. 12/471,026, (Oct. 28, 2011), 22 pages. |
“Notice of Allowance”, U.S. Appl. No. 12/418,224, (Nov. 28, 2011), 8 pages. |
“Load Content While Scrolling”, posted at WebResource Depot, (Jun. 3, 2008), 3 pages. |
“Non-Final Office Action”, U.S. Appl. No. 12/406,816, (Jun. 27, 2011), 14 pages. |
“Non-Final Office Action”, U.S. Appl. No. 12/418,224, (Jun. 9, 2011), 11 pages. |
“Non-Final Office Action”, U.S. Appl. No. 12/471,026, (Jun. 23, 2011), 18 pages. |
Barton, John et al., “Sensor-Enhanced Mobile Web Clients: an XForms Approach”, In Proceedings of WWW 2003,(May 2003), pp. 80-89. |
Berseth, Matt, “asp.net Ajax Auto-Complete Control”, (Jan. 10, 2008), 5 pages. |
Merlino, Andrew “Paging in asp.net”, (Sep. 10, 2003), 4 pages. |
“Best Practices for NI TestStand User Interface Development”, Retrieved at <<http://zone.ni.com/devzone/cda/tut/p/id/7560, Jul. 15, 2008, pp. 10. |
Clausen, Joern, “Attaching Data to Timeline Event”, Retrieved at <<http://www.mail-archive.com/general©simile.mit.edu/msg00966.html>>, Mar. 10, 2007, pp. 2. |
Hallberg, Aaron, “Attaching Custom Data to a Build”, Retrieved at <<http://blogs.msdn.com/aaronhallberg/archive/2008/05/27/attaching-custom-data-to-a-build.aspx>>, May 27, 2008, pp. 3. |
“Custom Event Classes”, Retrieved at <<http://wiki.wxpython.org/CustomEventClasses>>, Feb. 4, 2009, p. 1. |
“DMP-6000 Network High Definition Digital Signage Media Player & Content Distribution Server (CDS) Software platform”, Retrieved from <http://www.gctglobal.com/Products/Set—Top—Box/set—top—box.html>, Jan. 2009. |
“Set-Top Box Design Template”, Retrieved from <http://msdn.microsoft.com/en-us/library/ms924238.aspx>, 2009. |
“SeaChange IPTV”, Retrieved from <http://www.schange.com/en-US/Docs/Public/products/IPTV—TVNav—BR—7-11-2008.pdf>. |
“Data Binding Between Controls in Windows Forms”, Retrieved from <http://msdn.microsoft.com/en-us/magazine/cc301575.aspx>, 2002. |
“How to: Ensure Multiple Controls Bound to the Same Data Source Remain Synchronized”, Retrieved from <http://msdn.microsoft.com/en-us/library/ms404299.aspx>, on Jan. 2009. |
“Manipulating Data through a Binding Source”, Retrieved from <http://my.safaribooksonline.com/032126892X/ch04lev1sec5>, Jan. 2009. |
“Palm Prē”, Retreived from <<http://www.palm.com/us/products/phones/pre/>>on Apr. 24, 2009, Scroll down to “Connected Calendars and Contacts and click on See Gallery”—Images 6, 7 and 8, entitled “Contacts,” “Linked Contact” and “Linked Contact”,1-7. |
“Orban/Coding Technologies AAC/aacPlus Player Plugin”, Retreived at <http://www.orban.com/plugin/Read—Me.html>, Apr. 2008. |
“Best Practices for NI TestStand User Interface Development”, Retrieved from: http://zone.ni.com/devzone/cda/tut/p/id/7560 on Feb. 4, 2009., (Jul. 15, 2008),10 Pages. |
Clausen, Joern “Attaching Data to Timeline Event”, Retrieved from: http://www.mail-archive.com/general@simile.mit.edu/msg00966.html on Feb. 4, 2009., 2 Pages. |
Hallberg, Aaron “Attaching Custom Data to a Build”, Retrieved from: http://blogs.msdn.com/aaronhallberg/archive/2008/05/27/attaching-custom-data-to-a-build.aspx on Feb. 4, 2009, 3 Pages. |
“Custom Event Classes”, Retrieved from: http://wiki.wxpython.org/CustomEventClasses on Feb. 4, 2009., 1 Page. |
“Final Office Action”, U.S. Appl. No. 12/406,816, (Jan. 20, 2012),16 pages. |
Faltstrom, P. “E.164 Number and DNS”, Network Working Group, Retrieved from: <http://www.ietf.org/rfc/rfc2916.txt> on Jan. 4, 2012,(Sep. 2000),7 pages. |
“Notice of Allowance”, U.S. Appl. No. 12/471,026, (Oct. 9, 2012), 15 pages. |
“Non-Final Office Action”, U.S. Appl. No. 12/406,816, Jun. 20, 2014, 22 pages. |
“Final Office Action”, U.S. Appl. No. 12/406,816, Feb. 23, 2015, 27 pages. |
Number | Date | Country | |
---|---|---|---|
20100257540 A1 | Oct 2010 | US |