Class: LogStash::Plugins::Registry::UniversalPluginSpecification
- Inherits:
-
PluginSpecification
- Object
- PluginSpecification
- LogStash::Plugins::Registry::UniversalPluginSpecification
- Defined in:
- lib/logstash/plugins/registry.rb
Instance Attribute Summary
Attributes inherited from PluginSpecification
Instance Method Summary collapse
-
#initialize(type, name, klass) ⇒ UniversalPluginSpecification
constructor
A new instance of UniversalPluginSpecification.
- #register(hooks, settings) ⇒ Object
Constructor Details
#initialize(type, name, klass) ⇒ UniversalPluginSpecification
Returns a new instance of UniversalPluginSpecification.
86 87 88 89 |
# File 'lib/logstash/plugins/registry.rb', line 86 def initialize(type, name, klass) super(type, name, klass) @instance = klass.new end |
Instance Method Details
#register(hooks, settings) ⇒ Object
91 92 93 94 |
# File 'lib/logstash/plugins/registry.rb', line 91 def register(hooks, settings) @instance.register_hooks(hooks) @instance.additionals_settings(settings) end |