Just to improve the question. The right link is https://github.com/caelum/vraptor4/issues/897
We have this interface:
public interface CacheStore<K,V> {
|
V write(K key, V value);
|
[...]
|
}
|
And this implementation:
public class DefaultCacheStore<K,V> implements CacheStore<K,V> {
|
[...]
|
}
|
This works fine using Weld 2.1.x. But when we migrate to Weld 2.2.x, we got this error:
Caused by: org.jboss.weld.exceptions.DeploymentException:
WELD-001408
: Unsatisfied dependencies for type CacheStore<String, String> with qualifiers @LRU at injection point [BackedAnnotatedParameter] Parameter 1 of [BackedAnnotatedConstructor] @Inject public br.com.caelum.vraptor.view .DefaultAcceptHeaderToFormat(@LRU CacheStore<String, String>) at br.com.caelum.vraptor.view.DefaultAcceptHeaderToFormat.<init> (DefaultAcceptHeaderToFormat.java:0)
WELD-001475
: The following beans match by type, but none have matching qualifiers: - Managed Bean [class br.com.caelum .vraptor.cache.DefaultCacheStore] with qualifiers [@Default @Any]
The complete classes code are available on Github: https://github.com/caelum/vraptor4/tree/master/vraptor-core/src/main/java/br/com/caelum/vraptor/cache
Thank you
|