Hi Everyone,

I have the following in my module:

bind(Datastore.class).annotatedWith(DocumentStore.class).toProvider(DocumentDatastoreProvider.class).in(Singleton.class);
bind(SomeDao.class).to(SomeDaoImpl.class).in(Singleton.class);

And here's SomeDaoImpl constructor

@Inject
public SomeDaoImp(final @DocumentStore Datastore datastore) {
        super(datastore);
}


But seems like the Datastore is not singleton and
DocumentDatastoreProvider.get() gets called many times.

What's the issue?

- Drew

-- 
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