[
https://issues.jboss.org/browse/ISPN-7351?page=com.atlassian.jira.plugin....
]
Seto Kaiba commented on ISPN-7351:
----------------------------------
[~sebastian.laskawiec] Did you tried with multiple @Named without other qualifier? The
documentation mentions @Named as String-based qualifier. Yet, it isn't normal
qualifier. The @Default will be added automatically. But with normal qualifier @Default
won't be added automatically. Then this exception will be thrown.
{panel}
org.jboss.weld.exceptions.DeploymentException: WELD-001409: Ambiguous dependencies for
type Configuration with qualifiers @Default
at injection point [UnbackedAnnotatedParameter] Parameter 1 of [UnbackedAnnotatedMethod]
@Produces @ApplicationScoped @DefaultBeanInformation @Synthetic @DefaultBean public
org.infinispan.cdi.DefaultEmbeddedCacheManagerProducer.getDefaultEmbeddedCacheManager(Configuration)
at
org.infinispan.cdi.DefaultEmbeddedCacheManagerProducer.getDefaultEmbeddedCacheManager(DefaultEmbeddedCacheManagerProducer.java:38)
Possible dependencies:
- Producer Method [Configuration] with qualifiers [@Default @Named @Any] declared as
[[BackedAnnotatedMethod] @ConfigureCache @Named @Produces public
co.kaiba.blueeyes.impl.data.datastore.infinispan.CacheConfig.keyCacheConfig()],
- Producer Method [Configuration] with qualifiers [@Default @Named @Any] declared as
[[BackedAnnotatedMethod] @ConfigureCache @Named @Produces public
co.kaiba.blueeyes.impl.data.datastore.infinispan.CacheConfig.idCacheConfig()]
{panel}
Support @Named in CDI extension
-------------------------------
Key: ISPN-7351
URL:
https://issues.jboss.org/browse/ISPN-7351
Project: Infinispan
Issue Type: Feature Request
Components: CDI Integration
Reporter: Sebastian Łaskawiec
Assignee: Sebastian Łaskawiec
Currently our users have to create lots and lots of {{@Qualifier}} type of annotations.
It would be desirable to support {{@Named("driver")}} type of annotations.
Useful links:
* {{@Named}} Javadoc:
http://docs.oracle.com/javaee/6/api/javax/inject/Named.html
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)