protected synchronized void unsetRepertoire ( RepertoireConfigService config ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { Tr . event ( tc , "Removing repertoire: " + config . getAlias ( ) ) ; } repertoireMap . remove ( config . getAlias ( ) ) ; repertoirePIDMap . remove ( config . getPID ( ) ) ; repertoirePropertiesMap . remove ( config . getAlias ( ) ) ; processConfig ( repertoirePropertiesMap . remove ( config . getAlias ( ) ) != null ) ; }
Method will be called for each RepertoireConfigService that is unregistered in the OSGi service registry . We must remove this instance from our internal map .