Class: TrinidadScheduler::GlobalListener
- Defined in:
- lib/trinidad_scheduler_extension/scheduler_listener.rb
Instance Method Summary collapse
- #container_event(event) ⇒ Object
-
#initialize(options) ⇒ GlobalListener
constructor
A new instance of GlobalListener.
Constructor Details
#initialize(options) ⇒ GlobalListener
Returns a new instance of GlobalListener.
41 42 43 |
# File 'lib/trinidad_scheduler_extension/scheduler_listener.rb', line 41 def initialize() @options = end |
Instance Method Details
#container_event(event) ⇒ Object
45 46 47 48 49 50 |
# File 'lib/trinidad_scheduler_extension/scheduler_listener.rb', line 45 def container_event(event) case event.type when org.apache.catalina.Container::ADD_CHILD_EVENT then event.data.add_lifecycle_listener(TrinidadScheduler::WebAppListener.new(event.data.servlet_context, @options)) end end |