public void didLeavePlace ( ) { // unsubscribe from our old place object if ( _subber != null ) { _subber . unsubscribe ( _ctx . getDObjectManager ( ) ) ; _subber = null ; } // let the old controller know that things are going away if ( _plobj != null && _controller != null ) { try { _controller . didLeavePlace ( _plobj ) ; } catch ( Exception e ) { log . warning ( "Place controller choked in didLeavePlace" , "plobj" , _plobj , e ) ; } } // and clear out other bits _plobj = null ; _controller = null ; _placeId = - 1 ; }
Called when we re leaving our current location . Informs the location s controller that we re departing unsubscribes from the location s place object and clears out our internal place information .