Class: JettyRails::Adapters::MerbAdapter

Inherits:
AbstractAdapter show all
Defined in:
lib/jetty_rails/adapters/merb_adapter.rb

Defined Under Namespace

Classes: SignalHandler

Instance Attribute Summary

Attributes inherited from AbstractAdapter

#config

Instance Method Summary collapse

Methods inherited from AbstractAdapter

#base_init_params, #initialize

Constructor Details

This class inherits a constructor from JettyRails::Adapters::AbstractAdapter

Instance Method Details

#event_listenersObject



14
15
16
# File 'lib/jetty_rails/adapters/merb_adapter.rb', line 14

def event_listeners
  [ Rack::MerbServletContextListener.new, SignalHandler.new ]
end

#init_paramsObject



6
7
8
9
10
11
12
# File 'lib/jetty_rails/adapters/merb_adapter.rb', line 6

def init_params
  # please refer to goldspike and jruby-rack documentation
  @merb_params ||= {
    'merb.root' => '/',
    'merb.environment' => config[:environment]
  }.merge(base_init_params)
end