private void notifyServiceRevokedToServiceUsers ( Class serviceClass , BeanContextServiceProvider serviceProvider , boolean revokeCurrentServicesNow , BCSSChild bcssChild ) { if ( bcssChild . serviceRecords == null || bcssChild . serviceRecords . isEmpty ( ) ) { return ; } synchronized ( bcssChild . child ) { for ( Iterator it = bcssChild . serviceRecords . iterator ( ) ; it . hasNext ( ) ; ) { ServiceRecord rec = ( ServiceRecord ) it . next ( ) ; if ( rec . serviceClass == serviceClass && rec . provider == serviceProvider && rec . revokedListener != null && ! rec . isDelegate ) { rec . revokedListener . serviceRevoked ( new BeanContextServiceRevokedEvent ( getBeanContextServicesPeer ( ) , serviceClass , revokeCurrentServicesNow ) ) ; // prevent duplicate notification rec . revokedListener = null ; } } } }
Notify the given child that a service has been revoked .