Do you have a binding for AppRequest? Seeding it isn't sufficient, you
also need a binding. From the SimpleScope.java Javadoc,

 * The scope can be initialized with one or more seed values by
calling
 * <code>seed(key, value)</code> before the injector will be called
upon to
 * provide for this key. A typical use is for a servlet filter to
enter/exit the
 * scope, representing a Request Scope, and seed HttpServletRequest
and
 * HttpServletResponse.  For each key inserted with seed(), it's good
practice
 * (since you have to provide <i>some</i> binding anyhow) to include a
 * corresponding binding that will throw an exception if Guice is
asked to
 * provide for that key if it was not yet seeded: <pre>   {...@code
 *
 *   bind(key)
 *       .toProvider(SimpleScope.<KeyClass>seededKeyProvider())
 *       .in(ScopeAnnotation.class);
 * }</pre>

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