In our company we are using home grown DI container for most of our
projects. We are in the process of migrating all these projects to
Guice.

There is one feature of our container which I cannot simply mimic in
Guice. Assuming we have component:


package com.example;

public class FooComponent {

  @Inject
  public FooComponent(Properties props) {
  }

}


Our own container would inject Properties taken from file named by
some convention, e. g.:

/etc/some-project/com.example.FooComponent.properties

In other words I need something like Guice's Provider which would be
aware of the context of instantiation. I know that
java.util.logging.Logger is injected such way internally, but I cannot
find how to configure it "externally" without altering Guice sources.

-- 
"Meaning is differential not referential"

kazik 'morisil' pogoda
http://www.xemantic.com/ http://blog.xemantic.com/

-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en.

Reply via email to