public void deregisterAll(Class<?> category){
  SubRegistry reg=(SubRegistry)categoryMap.get(category);
  if (reg == null) {
    throw new IllegalArgumentException("category unknown!");
  }
  reg.clear();
}

public void deregisterAll ( Class < ? > category ) { SubRegistry reg = ( SubRegistry ) categoryMap . get ( category ) ; if ( reg == null ) { throw new IllegalArgumentException ( "category unknown!" ) ; } reg . clear ( ) ; }
deregisters all service provider object currently registered under the given category .
