[
https://issues.jboss.org/browse/ISPN-1364?page=com.atlassian.jira.plugin....
]
Kevin Pollet commented on ISPN-1364:
------------------------------------
The {{defineConfiguration}} method is only defined in the {{EmbeddedCacheManager}}
interface. If a cache manager is configured with a producer method/field with type
{{CacheContainer}}, it's not possible to downcast the produced bean. In CDI
specification:
{quote}
The bean types of a producer method depend upon the method return type:
If the return type is an interface, the unrestricted set of bean types contains the return
type, all interfaces it extends directly or indirectly and java.lang.Object.
...
{quote}
In this case, caches cannot be configured in that cache manager.
Allow use of CacheContainer interface for cache manager
configuration
---------------------------------------------------------------------
Key: ISPN-1364
URL:
https://issues.jboss.org/browse/ISPN-1364
Project: Infinispan
Issue Type: Enhancement
Components: CDI integration
Affects Versions: 5.0.0.CR8, 5.0.0.FINAL
Reporter: Kevin Pollet
Assignee: Kevin Pollet
Fix For: 5.1.0.BETA5, 5.1.0.FINAL
Currently the {{infinispan-cdi}} extension only works with the {{EmbeddedCacheManager}}
interface. That means that a cache manager cannot be configured with a producer of type
{{CacheContainer}}. The CDI extension has to be flexible and allow to use the interface
{{EmbeddedCacheManager}} or {{CacheContainer}}.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira