Hi! > On 10 Sep 2015, at 17:43, Sivasamy Kaliappan <[email protected]> wrote: > > Hi, > > I need to access the value of http_proxy_uri parameter configured in > server.conf file from my plugin. I see that BaseConfiguration class has > methods to access server.conf values. > I do not see an option to access BaseConfguration from my plungin. > > Is there any API to access the server.conf values from plugin code?
You should be able to get any configuration value injected by name, or simple inject the entire BaseConfiguration class in one of your classes. Annotate the constructor of your plugin with @javax.inject.Inject and use @javax.inject.Named(“http_proxy_uri”) String proxyUri as a constructor parameter. That should inject the setting’s value. cheers, kay > Thanks, > Siva. > > -- > You received this message because you are subscribed to the Google Groups > "Graylog Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/graylog2/4d40a401-dcd9-4689-a262-ec2099e5a586%40googlegroups.com > > <https://groups.google.com/d/msgid/graylog2/4d40a401-dcd9-4689-a262-ec2099e5a586%40googlegroups.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- You received this message because you are subscribed to the Google Groups "Graylog Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/graylog2/E992C8C1-7185-4CFF-855C-31DA3F3391B2%40gmail.com. For more options, visit https://groups.google.com/d/optout.
