Thanks. It worked. On Thursday, September 10, 2015 at 10:03:17 PM UTC+5:30, Kay Röpke wrote: > > Hi! > > On 10 Sep 2015, at 17:43, Sivasamy Kaliappan <[email protected] > <javascript:>> 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] <javascript:>. > 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. > > >
-- 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/1c438ca8-263c-4af4-837b-5783452aa914%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
