pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Brown <gkbr...@mac.com>
Subject Re: Heads Up - new Pivot Article
Date Tue, 28 Sep 2010 12:14:11 GMT
The subscribe(), unsubscribe(), and sendMessage() methods are static, so you don't need a reference
to the application context. In fact, in Pivot 2.0, there is no longer an actual application
context instance - it is entirely static.

In Pivot 1.5.x, these methods live in ApplicationContext. In Pivot 2.0, they have been moved
to org.apache.pivot.util.MessageBus. So you can use whichever approach is appropriate for
the Pivot version you are using.

On Sep 28, 2010, at 7:55 AM, B.L. Zeebub wrote:

> How do I get access to the Pivot Message Bus from the ApplicationContext so I
> can pass it into the layers that deal with my business logic. I need to do
> this so my Pivot application can respond to changes in the data model. The
> only way that I can see to do this is to pass the Pivot ApplicationContext
> to the business layer., or do I forget ApplicationContext.subscribe() etc
> and work directly with the MessageBus?
> -- 
> View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Heads-Up-new-Pivot-Article-tp1535411p1595552.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

View raw message