Class: LogStash::Plugins::Registry::UniversalPluginSpecification

Inherits:
PluginSpecification show all
Defined in:
lib/logstash/plugins/registry.rb

Instance Attribute Summary

Attributes inherited from PluginSpecification

#klass, #name, #type

Instance Method Summary collapse

Constructor Details

#initialize(type, name, klass) ⇒ UniversalPluginSpecification

Returns a new instance of UniversalPluginSpecification.



83
84
85
86
# File 'lib/logstash/plugins/registry.rb', line 83

def initialize(type, name, klass)
  super(type, name, klass)
  @instance = klass.new
end

Instance Method Details

#register(hooks, settings) ⇒ Object



88
89
90
91
# File 'lib/logstash/plugins/registry.rb', line 88

def register(hooks, settings)
  @instance.register_hooks(hooks)
  @instance.additionals_settings(settings)
end