Module: OpenHAB::RSpec::JRuby::InstanceConfig
- Defined in:
- lib/openhab/rspec/jruby.rb
Instance Method Summary collapse
Instance Method Details
#add_loader(loader) ⇒ Object
35 36 37 38 39 40 41 |
# File 'lib/openhab/rspec/jruby.rb', line 35 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 |