Changeset 466

Show
Ignore:
Timestamp:
08/02/09 10:22:42 (8 years ago)
Author:
samuraraujo
Message:
 
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Explorator/trunk/vendor/plugins/active_rdf/lib/active_rdf/federation/connection_pool.rb

    r401 r466  
    127127     
    128128  end 
    129    
     129   def ConnectionPool.remove_last_data_source_added() 
     130    RDFS::Resource.reset_cache()  
     131      
     132    $activerdflog.info "ConnectionPool: remove_last_data_source with params: " 
     133     
     134    index =0 
     135     
     136    # remove_data_source mit be called repeatedly, e.g because the adapter object is stale 
     137    unless index.nil? 
     138      @@adapter_parameters.delete_at(index) 
     139      @@adapter_pool.delete_at(index) 
     140      #      if self.write_adapters.empty? 
     141      #        self.write_adapter = nil 
     142      #      else 
     143      #        self.write_adapter = self.write_adapters.first 
     144      #      end 
     145       
     146    end 
     147    
     148  end 
    130149  # sets adapter-instance for connection parameters (if you want to re-enable an existing adapter) 
    131150  def ConnectionPool.set_data_source(adapter, connection_params = {})