Hello, I think I've hit an "unexpected feature" for which I see no
documentation.
I have a public class (annotated with @Singleton) with a private
constructor and a public method.
Guice instantiates the class without problems, but I cannot bind and
interceptor to the public method. When I try I get the error message
"No visible constructors in class" (which is true, since it is
private ...)
In the docs I see that the limitations are
* Classes must be public or package-private. (yes, public)
* Classes must be non-final (yes)
* Methods must be public, package-private or protected (yes,
public)
* Methods must be non-final (yes)
* Instances must be created by Guice by an @Inject-annotated or no-
argument constructor (yes, by @Inject. At run time I see that my class
ends with "$$EnhancerByGuice$$62d5d175")
maybe there's an extra limitation to add?
thanks
--
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.