I tried the following source code and it's not working, am I right?
@Inject(optional = true)
@Named("hello world")
private String message;
Guice is throwing the exception bellow:
Caused by: com.google.inject.ConfigurationException: Guice configuration errors:
1) No implementation for java.lang.String annotated with
@com.google.inject.name.Named(value=SignOutPage.redirectPage) was
bound.
while locating java.lang.String annotated with
@com.google.inject.name.Named(value=SignOutPage.redirectPage)
Thanks,
Eduardo S. Nunes