Class: NotifierPlugin::NullHandlerType

Inherits:
BaseHandlerType show all
Defined in:
lib/tecsgen/plugin/NotifierPlugin.rb

Instance Attribute Summary

Attributes inherited from BaseHandlerType

#required_attributes

Instance Method Summary collapse

Methods inherited from BaseHandlerType

#gen_cfg_handler_parameters, #generate_attr_map, #initialize, #might_fail

Constructor Details

This class inherits a constructor from NotifierPlugin::BaseHandlerType

Instance Method Details

#gen_cfg_handler_type(handler) ⇒ Object



903
904
905
906
907
908
# File 'lib/tecsgen/plugin/NotifierPlugin.rb', line 903

def gen_cfg_handler_type(handler)
  case handler
    when ERROR_HANDLER then return nil
    else raise "unknown handler #{handler}"
  end
end

#validate_join(handler, cell, join, *args) ⇒ Object



897
898
899
900
901
# File 'lib/tecsgen/plugin/NotifierPlugin.rb', line 897

def validate_join(handler, cell, join, *args)
  return super(handler, cell, join, *args) &&
    join.nil? &&
    handler != EVENT_HANDLER # handler is mandatory for normal handler!
end