How can I inject a property to a class I don’t have access to using Guice? I only have access to the .jar that contains that class.
Also, I need the injected property to be available from the start of a Web Application (I suppose I can do this with a Servlet though).
Thanks
Take a look at the
Providerclass. You can have something like this (whereFoois the 3rd party bean):(Alternatively, take a look at guice-xml, but I don’t know how stable and up-to-date it is.)