public void entryUpdated ( EntryUpdatedEvent < OccupantInfo > event ) { // bail if this isn't for the OCCUPANT_INFO field if ( ! event . getName ( ) . equals ( PlaceObject . OCCUPANT_INFO ) ) { return ; } // now let the occupant observers know what's up final OccupantInfo info = event . getEntry ( ) ; final OccupantInfo oinfo = event . getOldEntry ( ) ; _observers . apply ( new ObserverList . ObserverOp < OccupantObserver > ( ) { public boolean apply ( OccupantObserver observer ) { observer . occupantUpdated ( oinfo , info ) ; return true ; } } ) ; }
Deals with all of the processing when an occupant is updated .