Class: Trinidad::Lifecycle::WebApp::Default

Inherits:
Base
  • Object
show all
Includes:
Shared
Defined in:
lib/trinidad/lifecycle/web_app/default.rb

Constant Summary

Constants inherited from Base

Base::EVENTS

Instance Attribute Summary

Attributes included from Shared

#web_app

Instance Method Summary collapse

Methods included from Shared

#before_start, #initialize

Methods inherited from Base

#after_destroy, #after_init, #after_start, #after_stop, #before_destroy, #before_start, #before_stop, #configure_start, #configure_stop, #lifecycleEvent, #periodic, #start, #stop

Instance Method Details

#before_init(event) ⇒ Object



21
22
23
24
25
# File 'lib/trinidad/lifecycle/web_app/default.rb', line 21

def before_init(event)
  super
  set_context_xml event.lifecycle
  # AFTER_INIT_EVENT ContextConfig#init() will pick this up
end

#configure(context) ⇒ Object



10
11
12
13
14
15
16
17
18
19
# File 'lib/trinidad/lifecycle/web_app/default.rb', line 10

def configure(context)
  super
  deployment_descriptor = configure_deployment_descriptor(context)
  unless deployment_descriptor
    configure_rack_servlet(context)
    configure_rack_listener(context)
  end
  configure_context_params(context)
  configure_context_loader(context)
end