Class: RServiceBus::StateStorage

Inherits:
Object
  • Object
show all
Defined in:
lib/rservicebus/StateStorage.rb

Class Method Summary collapse

Class Method Details

.Get(uri) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/rservicebus/StateStorage.rb', line 5

def StateStorage.Get( uri )
    case uri.scheme
        when 'dir'
            require 'rservicebus/StateStorage/Dir.rb'
            return StateStorage_Dir.new( uri )
            when 'inmem'
            require 'rservicebus/StateStorage/InMemory.rb'
            return StateStorage_InMemory.new( uri )
        else
            abort("Scheme, #{uri.scheme}, not recognised when configuring StateStorage, #{uri.to_s}");
    end
    
end