public synchronized void removeMetadataForModelsIn ( Bundle bundle ) { if ( bundle == null ) { throw new IllegalArgumentException ( "method parameter bundle must not be null" ) ; } Map < Class < ? > , ResourceModelMetadataHolder > newCache = copyCache ( ) ; Iterator < Map . Entry < Class < ? > , ResourceModelMetadataHolder > > it = newCache . entrySet ( ) . iterator ( ) ; while ( it . hasNext ( ) ) { OsgiModelSource < ? > source = it . next ( ) . getValue ( ) . source ; if ( source . getBundleId ( ) == bundle . getBundleId ( ) ) { it . remove ( ) ; } } this . cache = newCache ; }
Removes the metadata of all models contained in the provided bundle from the registrar .