Annotations in java need the
http://java.sun.com/javase/6/docs/api/java/lang/annotation/Inherited.html
annotation when inheritence is required.
But @RequestScoped does not have it:
http://code.google.com/p/google-guice/source/browse/trunk/servlet/src/com/google/inject/servlet/RequestScoped.java

So yes, the answer is no :)

Sam Berlin wrote:
I'm pretty sure the answer is: No.

Sam

On Thu, Apr 29, 2010 at 11:15 PM, PhilBeaudoin <[email protected] <mailto:[email protected]>> wrote:

    Just wanted to quickly check with you...

    Say I have a class:


    @RequestScoped
    public abstract class DAOBase
    {
    ...
    }

    And a subclass:

    public class UserDAO extends DAOBase {
    }

    And I use just-in-time binding to inject UserDAO in a number of
    places. Is this injected UserDAO request-scoped? In other words, does
    the @RequestScope annotation propagate to subclasses?

    --
    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]
    <mailto:[email protected]>.
    To unsubscribe from this group, send email to
    [email protected]
    <mailto:google-guice%[email protected]>.
    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.

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