Thank you,

I've read the doc extensively though....

fyi interest my mistake came from the confusing mix between
abstractModule, and Binder... some methods in abstract refers to
binder, but not all ! I scrolled the Binder javadoc for the feature I
needed, but it's not there !

sorry






On Feb 3, 12:36 pm, "Dhanji R. Prasanna" <[email protected]> wrote:
> Yes, you're looking for AbstractModule.requireBinding()
>
> Dhanji.
>
>
>
> On Wed, Feb 3, 2010 at 8:45 PM, eric <[email protected]> wrote:
> > Hi,
>
> > I'm writing some Design pattern for guice modulling, and some point
> > puzzles me:
>
> > I want to have a module (A) that depends on a service S ( let say a
> > database session manager).
> > moduleA is not my main module, and therefore I don't want to bind the
> > service S to any actual classes. (kind of "abstract" module).
>
> > I my code, in introduce injection point to the service S, and I expect
> > that those bindings will be satisfied in the "real app". When it's the
> > case, everything works fine.
>
> > But I would like to "declare" within moduleA that it "requires" S. So
> > that consumers of my ModuleA knows that they need to provide a binding
> > for the serviceA.
>
> > My concern is that actually the injection point is hidden somewhere in
> > the whole code, and it won't appear until Runtime. Application
> > construction team have no mean to be aware of this "required" service
> > that hey must bind.
>
> > Is there a way to declare this "required" binding ? is there a way to
> > see it (using graph for instance) ? is there a possibility to "check"
> > a module for binding "correctness" ( there is no "unwired" keys)
>
> > thank you
>
> > --
> > 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]<google-guice%2bunsubscr...@google 
> > groups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-guice?hl=en.

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