public void removeDescriptor ( Object validKey ) { PBKey pbKey ; if ( validKey instanceof PBKey ) { pbKey = ( PBKey ) validKey ; } else if ( validKey instanceof JdbcConnectionDescriptor ) { pbKey = ( ( JdbcConnectionDescriptor ) validKey ) . getPBKey ( ) ; } else { throw new MetadataException ( "Could not remove descriptor, given object was no vaild key: " + validKey ) ; } Object removed = null ; synchronized ( jcdMap ) { removed = jcdMap . remove ( pbKey ) ; jcdAliasToPBKeyMap . remove ( pbKey . getAlias ( ) ) ; } log . info ( "Remove descriptor: " + removed ) ; }
Remove a descriptor .