Module: RSpec::OpenHAB::JRuby::InstanceConfig

Included in:
RSpec::OpenHAB::JRuby
Defined in:
lib/rspec/openhab/jruby.rb

Instance Method Summary collapse

Instance Method Details

#add_loader(loader) ⇒ Object



34
35
36
37
38
39
40
# File 'lib/rspec/openhab/jruby.rb', line 34

def add_loader(loader)
  # have to use Ruby-style class reference for the defined? check
  if defined?(Java::OrgOsgiFramework::Bundle) && loader.is_a?(org.osgi.framework.Bundle)
    loader = OSGiBundleClassLoader.new(loader)
  end
  super(loader)
end